Why you Should be using PHP's PDO for Database Access

1

Many PHP programmers learned how to access databases by using either the MySQL or MySQLi extensions. As of PHP 5.1, there's a better way. PHP Data Objects (PDO) provide methods for prepared statements and working with objects that will make you far more productive!
Republished Tutorial

Every few weeks, we revisit some of our reader's favorite posts from throughout the history of the site. This tutorial was first published in May of 2010.
PDO Introduction

"PDO - PHP Data Objects - is a database access layer providing a uniform method of access to multiple databases."

It doesn't account for database-specific syntax, but can allow for the process of switching databases and platforms to be fairly painless, simply by switching the connection string in many instances.

Posted by admin 822 days ago in Computer  |  tutsplus.com
 

Who Voted

admin  

Leave a comment