Updating records in mysql databases with htmlphp


The form which allows the user to make changes should display existing information in input boxes for editing. Once again we make use of the mysql_query and mysql_num_rows functions.

updating records in mysql databases with htmlphp-69

This tutorial is designed to be viewed and executed in sequence.

Learn to build your database right on your PC and Export it to your website.

The specification says that if the WHERE is missing, every row in the table will be updated! try use: mysql_query($sql) or die(mysql_error()); also try to use addslashes() function to escape some chars. just access the data from ur post variable as $_POST["your Select Name"] and u can very well add it to ur record as u do for text.

the post variable will contain the value of option which user selected... just access the data from ur post variable as $_POST["your Select Name"] and u can very well add it to ur record as u do for text.

All I want to send is brightness, with the code below.