This post explains on how to insert HTML data to MySQL database using PHP. This is an application to store the details of books. This application is using a simple HTML form to submit book details. After this, a PHP code is written to read all the input details from HTML form and insert them into a MySQL database.
An XHTML form with Name, Address Line 1, Address Line 2 and E-mail text fields. On submitting store the values in MySQL table. Retrieve and display the data based on name using PHP.
A PHP progarm to store current date-time in a COOKIE and display the ‘Last visited on’ date-time on the web page upon reopening of the same page
A PHP program to store page view count in SESSION, to increment the count on each refresh , and to show the count on web page