Update Data into Database in PHP:

If you want to modify data in table so you have to use update query.

Syntax:

$sql = “update table_name set column_name1=value1, column_name2=value2……. where column_name = value;

mysql_query($sql);

 Example:

 

Leave a Reply

Your email address will not be published. Required fields are marked *