DEV Community

Quick guide for PHP prepared statements

Mateusz Jasiński on January 05, 2023

Introduction In my last post I mentioned prepared statements. Now, let's expand on this topic and see how we can implement them in our ...
Collapse
 
gbhorwood profile image
grant horwood

i would also add that pdo’s fetch modes are a compelling reason to use it!

Collapse
 
dopitz profile image
Daniel O.

Note that bindParam bounds your variable by reference. This means that the value might be changed after the query execution, which could cause some strange bugs.