Below is an example of php script along with MySql script for retrieving data from HTML input boxes and saving into MySql database. Then retrieving data from the MySql database using php.
php is Apache server based loosely typed laguage that is executed on the Apache server. To input values into a php script, you need to create HTML input fields such as Textbox, Radio, Checkbox and Dropdown. The HTML can be located separate file and call the php file on button submit.