Search Keyword:

Archive for the ‘PHP’ Category

Date and time fields or what we call timestamps stored in our Mysql databases has a format of “YYYY-MM-DD HH:MM:SS” or “2011-04-15 11:30:00″ . It is awkward for the users to to see dates outputted to something in that format, so for user readability and friendly purposes, we must output the date into something more [...]

03Mar

Wordpress query hacks

Posted by admin as PHP, Wordpress

Sometimes, you need to get some information from your wordpress database and display it outside your WP application. Here are some useful custom queries that you can use to get data from your Wordpress database.
1. Get and display recent posts query.

//get recent posts function
$query = "Select * from wp_posts
          WHERE post_type = 'post'
          AND post_status = [...]

10Aug

Configuring TinyMCE to allow embed tags

Posted by admin as PHP

This post is on how to configure TinyMCE to allow embed tags which TinyMce
is stripping when the user press the Update button in the HTML editor.
When you are embedding Youtube videos,you’ll just have to get the embed code in the video page and just paste it in the editor.The editor(by default) strips out the embed [...]


Sponsored Links



Recent Comments

  • anup: thanx it helped me alot…
  • admin: try to look at window.location function of Javascript and place it under the success function of the AJAX...
  • ana: it works for me, but after success, how can i forward the url to a certain page? thanks
  • admin: Hello Don, do these steps again and again until the PSP reboots. Restore your PSP’s Default settings in SYstem...
  • don sb: my psp was already hacked then i changed the screen cos it broke,so at one point the battery lost total...