PDO

How to use PDO to update the database?

1) Write the regular update statement and again, instead of values, assign the named placeholders. For example:

2) Prepare the query:
3) Bind the parameters:
4) Define the bound values:
5) Execute the query:
6) Check that the query has been performed and that the database has been successfully updated.

About the author

Anuj kumar

I'm Anuj kumar a web developer with 4+ year experience .I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to is provide php , jquery , mysql , phpoops and other web development tutorials. I am trying best effort to make PHPGurukul useful for every single moment spend on this website. If you think this website is useful to visit please share with your friend and buddies.

Leave a Comment

Subscribe For Latest Updates