PHP Data Objects (PDO) Step By Step Tutorial – Part 7: Do you ever hear about prepared statements? If you ever work with other tool such visual studio, may be you use prepare statement. PHP Extension for MySQL and SQLite don’t offer this functionality. Ok, I will show a sample. I believe, from that sample you will understand what is prepare statement. (http://www.phpeveryday.com/articles/PDO-Prepared-Statement-P550.html)
I think that’s quite a load of resources there:
PDO is a PHP extension to formalise PHP’s database connections by creating a uniform interface. This allows developers to create code which is portable across many databases and platforms. PDO is _not_ just another abstraction layer like PearDB although PearDB may use PDO as a backend. Those of you familiar with Perls DBI may find the syntax disturbingly familiar.
Note: Your must read the section on Error Handling to benifit from this tutorial
During this tutorial we will be using a database called animals, which, as you might have guessed, is a database of animals, genius! The animals table is described here…