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
<?php
|
Output:

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.