PHP code example of phryneas / logged-pdo

1. Go to this page and download the library: Download phryneas/logged-pdo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phryneas / logged-pdo example snippets



$logger = Log::factory('console', '', 'PDO');
$pdo = new \LoggedPDO\PDO($connstr, DB_USERNAME, DB_PASSWORD, null, $logger);


$logger = Log::factory('console', '', 'PDO');