Develop a PHP form using PHP and MySQL with Ajax and jQuery to save form data automatically after every few seconds when the user enters data in the form.
PHP function md5() is a useful function used to create md5 hash of a string. See how you can generate it in PHP and Ajax without submitting a form.
Count the number of elements in an array using PHP. Use PHP count() function to know the length of an array. See how you can display the count with example.
PHP application to change the password for a user. Check to see the PHP code and MySQL statements along with the login and logout code.
Using PHP string function, you can count the number of characters or length of a string with and without spaces. Use strlen() function on the string to get it.
Populate a two-dimensional array from two database tables using PHP and MySQL. Also, display the data from the two-dimensional array using two nested PHP loops.
You can use jQuery with PHP and MySQL to dynamically show star ratings from the database. User can select a star rating for feedback and save it in the database.
Use PHP string functions explode() and strstr() to get user id and mail server from an email. It is simple but useful while working on a project.
Populating an array with data from database is very common in PHP. Use select query to get data from MySQL database and populate the array using PHP.
Display an image with data in a Bootstrap modal using PHP and Ajax. Make it dynamic so that you can display any image or data from MySQL database in the same modal.
Write a PHP program to sort an array in ascending and descending order using sort() and rsort() functions. Display elements from the array using a PHP for loop.
If you want to count the number of words in a string, you can use PHP function str_word_count() to get it easily. Check this how you can use it in PHP.