PHP MySQL Update query- Php Mysql Create Database -

PHP MySQL Update

PHP Summer Training/Internship with 2 Live Projects in Noida Fee is only 5500/-Click here to Book Your Seat.


PHP MySQL Update Query

The update keyword is basically used to modify or edit the existing records in the database table.
it usually need a where clause to find out in which record change is to be done.

It is must to specify the where clause otherwise all records of that table got modify.

Note : Notice the WHERE clause in the UPDATE syntax is must otherwise all records will be updated!


Previous records in empInfo table are:


This example updates some data in the “empInfo” table

In the above example ,
empInfo table has 3 records of devesh,deepak, and ravi.
we need updation in this table as
devesh change to dev and his mobile number also need to be changed.

here first we create connection with the database,then database is selected using mysql_select_db(),
then update query is passed to the mysql_query( ) and the database table is updated.

Latest Trending Technologies