split php array into smaller chunk

In this post we will splitting an php array into smaller chunk might be useful for setting up a report, calendar or pagination on a site. Either way there are numerous ways to do this but the following seems to be the quickest and most reliable method. Function to split an php array into smaller

1045 – Access denied for user ‘root’@’localhost’ (using password: YES)

While dealing with phpMyAdmin for novice user, sometime you unable to login into mysql using the mysql console. It throws #1045 - Access denied for user 'root'@'localhost' (using password: YES) error on screen. If root@localhost wasn't granted the necessary rights to access the database or you provided the wrong password, you will then encounter this error.

Adding Custom Field to WordPress Post

In WordPress there some default fields in add new post form. These are title, HTML description, category, tags. If we want to add more information to our post, WordPress provides an option to enable custom fields. These additional information added with the custom fields are called as post meta. This meta data is stored in

Allow only numbers to be typed in a textbox HTML

Here we will see how to allow only numeric  or number to be types in any html textbox. This will be useful for phone number field, pincode or for only numeric authentication purpose. To achieve this you could subscribe for the onkeypress event: HTML TEXTBOX <input type="text" class="textfield" value="" id="phone_number" name="phone_number" onkeypress="return hasNumber(event)" /> Now