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.