What is PDO: PDO has a much nicer interface and more productive,PDO also has different drivers for different SQL database. PDO is enabled by default in PHP installations now, however you need two extensions to be able to use PDO: PDO, and a driver for the database you want to use like pdo_mysql. Installing the MySQL driver is as simple as installing the php-mysql package in most distributions. Connections are established by creating instances of the PDO base class and you always use the PDO class name. If there are any connection errors, a PDOException object will be thrown. You may catch the exception if you want to handle the error condition, or you may opt to leave it for an application global exception handler that you set up via set_exception_handler(). Download link : https://drive.google.com/open?id=0BxmTZPVcu72fMVVCcVE1cEw1c1E Exception handling : <?php try { ...