Saturday, October 11, 2014

PHP PDO Insert and Update Data in mysql Database

Posted by Unknown  |  No comments


Hello Everyone today i will create new post. In this post, we will implement prepared statement for insert and update data. I will show simple example.
prepare($sql);
$q->execute(array(':author'=>$author,
                  ':title'=>$title));


?>

Example for update data:
prepare($sql);
$q->execute(array($title,$author,$id));


?>

10:27 PM Share:
About Naveed Iqbal

Nulla sagittis convallis arcu. Sed sed nunc. Curabitur consequat. Quisque metus enim venenatis fermentum mollis. Duis vulputate elit in elit. Follow him on Google+.

0 comments:

Visitors Counter

Flag Counter

Recent Post

Popular Posts

Proudly Powered by Blogger.
back to top