Sometimes you wanted to update columns of one MySQL table by quering another MySQL table and getting a column value from the later table. For example you have a ‘students’ table and you wanted to create a new field ‘totalMarks’…
Airtel Prepaid Tariff Plans for Punjab Circle
I frequently need to check this list as i have got two active Airtel activated sim cards and one of them is a pre-paid sim. The given list of Airtel prepaid tariff plans for Punjab circle is on the Airtel…
WordPress Key Generator to generate keys for wp-config
WordPress keys and salt in wp-config.php work as an important security measure. These “impossible to guess” and hard to remember and understand keys work as salt for WordPress Cookies data store in your computer for your WordPress website information. These…
WordPress Plugin: Custom Post Menu Sort Order
What is this Custom Post Menu Sort Order plugin? This is a plugin to sort WordPress posts using simple drag and drop method. Custom Post Menu Sort Order plugin has a settings page where one can choose the post type…
Useful PHP debug functions
Here are a few useful PHP debug functions. I wrote a similar post sometime ago posting the abbreviated “pr” function as a shorthand replacement for the “prinr_r” or “var_dump” functions. Since then this function has changed a bit so re-posting…
To print the table structure of MySQL table in PHP
You can print the table structure of MySQL table in PHP using simple php script. All you need to do is to make a ‘describe table’ call and process it using php script, similar to one you use to print…
One
Bootstrap Datetime Picker for 3.0
For 2.0 – The bootstrap-datetimepicker is one of the very best Date/Time Picker for Twitter Bootstrap. It can be downloaded from this link.
Javascript random integer between two numbers
A very simple and useful method to find a random integer between two numbers. Found this simple javascript function to calculate random integer between two numbers or intervals. Posting here for a quick reference. Here it is: [javascript]function randMaxMin(min,max) { return…
Changing database character set
Why to consider changing database character set? Why do i need to do this? As to find a more straight answer please look at the image below, taken from one of my websites built in WordPress: