Remove Empty/Null Rows from array using PHP
I got so many empty element as well as null values in array and my SQL query is some what complex so i was not able to use IS NOT NULL in mysql Query. Only alternative way i have is removing this null values from array using PHP. I used is_null function of PHP and remove null elements from array.
Facts of Drupal-PHP Open Source CMS
Drupal was originally written by Dries Buytaert and it became an open source project in 2001. Drupal is an English rendering of the Dutch word “druppel”, which means “drop”. The name was taken from the now-defunct Drop.org website, whose code slowly evolved into Drupal. Buytaert wanted to call the site “dorp” (Dutch for “village”) for its community aspects, but made a typo when checking the domain name and thought it sounded better.
Reverse GeoCoding-Getting Address from Latitude/Longitude
Google MAP API provides you the way to get Latitude, Longitude, IP Address if you pass the Address. This is called GeoCoding. Are you stuck where you want Address or Region code from Latitude and Longitude? Now, Google MAP API also provides reverse way where you have to pass latitude/longitude and Google will give Address containing City, State , Region Code, Country in response. This is called Reverse GeoCoding.
Error Solved Safari/Crome:’$(document).ready’ [undefined] is not a function
Today i was working with prototype.js and jQuery modal box. From the begining, prototype.js is for Ajax call and now as per client’s requirement i was replacing jQuery in place of dojo library. In Mozilla Firefox (FF) and Internet Explorer (IE), it works fine but i was getting error only in Crome and Safari. Error says “TypeError: Result of expression ‘$(document).ready’ [undefined] is not a function”.
PHP functions for Encrypt Decrypt a string
Here i am sharing php functions for encrypt decrypt a string. I came across two different ways of encrypt decrypt php functions for string. In first one, there are two functions for encrypt and decrypt string. One is for encrypt the string and other is for decrypt the encrypted string. In second one, there is only one encrypt decrypt function which works for both encryption and decryption of string in php.
How to Identify or Track Mouse Position using jQuery
I was working with one application for one of my client where i need to track or identify the mouse position in pixel using jQuery. Using this mouse positions you can drag your object or any other operation you want to do. I came across mousemove event of jQuery which gives you the position of X and Y from top left corner of page. Look at below syntax. This might be useful to you in future needs.
Autocomplete functionality in Combobox/Selectbox with jQuery-UI
Are you looking for Selectbox (Combobox) with Autocomplete functionality ? jQuery-UI provides Autocomplete functionality in HTML selectbox. All options for HTML selectbox is preloaded and you dont need to make an Ajax call for autocomplete. As long as you write keywords, it will search that keyword from all options defined and shows result in dropdown box.
Problem Solved-WordPress Asking FTP details While Installing Plugins
Hello Friends, WordPress is most popular because of Open Source and its plugin functionality.When you install plugin from wordpress admin, it will ask for FTP details. Entering FTP details every time is very irritating. If you are facing the same problem than just add below lines. It will not ask for FTP details once you [...]
How to Disable or Limit Post Revision in WordPress
In Previous Post i gave you MYSQL Query to delete Revision Posts in Wordpress. Suppose you don’t want to save Revision Posts than you may disable it by writing a single line of code in wp-config.php file. Also you can limit the Post Revisions in Wordpress. So here is how to disable or limit Post Revisions in WordPress.


I am
Recent Comments