PHP – PDO select records from MySql

As Zend has announce not to support mysql_* functions in future version’s of PHP (from PHP 5.5 and onwords). So now these functions will be deprecated.  So now developers should try to use PDO or MySqli extension of  PHP. Here is a small code snippet showing how to select records from Database using PDO.

// Connect to database using PDO



Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.