Example #1
0
 public function __construct()
 {
     try {
         $this->dbh = new PDO(Config::getDBUser(), Config::getDBPass(), Config::getDBHost());
     } catch (Exception $e) {
         echo 'Error: Database connect error.';
     }
 }