PDO Statement in PHP5

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…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s