This example illustrates how to use the WHERE clause in the UPDATE query in PHP.
In this example we create a UPDATE query with WHERE clause to update the field emp_name where name is 'amar'. In the figure below the first figure show before update the table and the second figure show after update the table.
Table: emp_table before update
Table: emp_table after update
Source Code of update_where.php
Posted on: December 10, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles