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
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.
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
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
In this demo we will see how to show image thumbnail while uploading using jquery, in HTML 5 its has become very easy to show the image thumbnails or its preview to your user before upload it to the server. In this post we used jQuery to show the preview of thumbnail, not complete procedure
Some time when we transfer or redirect some of our website page to other URL, we face an error http 301 moved permanently error in php. its means our search engine does not find the specified URL so it throws http 301 – moved permanently error on the screen. A page redirect with 301 permanent
As of now we have worked on horizontal text view, i.e a text are written from left to right direction, but what about top to bottom approach? i.e in vertical direction on web page. So in this post we are going to see that how to display a text in vertical direction using HTML CSS.
convert-php-mysql-to-json-format When we are dealing with web services, we are received the server side data into the JSON format or other. When it comes at PHP, then transforming the MySQL data to JSON Format becomes very important task for developer. In very less time JSON has gained its popularity over the XML format in terms