ezSQL_pdo::__construct PHP Method

__construct() public method

******************************************************************** Constructor - allow the user to perform a quick connect at the same time as initialising the ezSQL_pdo class
public __construct ( $dsn = '', $user = '', $password = '', $ssl = [] )
    function __construct($dsn = '', $user = '', $password = '', $ssl = array())
    {
        // Turn on track errors
        ini_set('track_errors', 1);
        if ($dsn && $user) {
            $this->connect($dsn, $user, $password);
        }
    }