PHP Data Objects (PDO)

dataPHP Data Objects or PDO is an extension for PHP that gives a consistent interface for accessing databases. Each database will have it’s own driver that must be installed or enabled in your PHP installation. It gives me a data-access abstraction layer which allows me to change the underlying database type without changing my code.

PDO also allows me to access my database in a more object oriented manner which is always a plus.

PDO allows me to use prepared statements which enhances security and performance if used correctly.

Here is a good tutorial for using PHP PDO.

Did you like this? Share it:
This entry was posted in Intermediate, MySQL, PHP and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>