You can update table data by simply using update query in mysql_query function, just like other queries.
Example:
<?php require_once("dbconnection.php"); $query = "update employees set name="andy" where id = 2"; $result = mysql_query($query, $con); if(!$result) { die("Error updatig data",mysql_error()); } echo "Data updated successfully"; ?>
As you see in above example using a function mysql_query, its very easy and simple to update table data using PHP.