Codes for updating database in php
while editing a record we have to fetch selected record from database, if image is selected to edit then old image will be deleted and new image will be uploaded, here is the only PHP script.Now we run the query with the “mysql_query( )” PHP function and to check whether they have been updated successfully, I have put an “if” condition statement there to see if the query runs successfully. The examples were created and tested on Ubuntu Linux.This tutorial shows you how to call My SQL stored procedures using PHP PDO.
It guides you how to call stored procedures that return result sets and stored procedures that accept input/output parameters.
Here are the codes: For “updateform.html”: A HTML form with 2 text fields and one submit button is created here.
Codes for updating database in php comments