private function connect()
{
try{
//Configure data source DSN
$dsn = "{$this->dbConfig['db']}:host={$this->dbConfig['host']};
port={$this->dbConfig['port']};dbname={$this->dbConfig['dbname']};
charset={$this->dbConfig['charset']}";
//Create PDO object
new PDO($dsn,$this->dbConfig['user'],$this->dbConfig['pass']);
//Set the client's default character set
$this->conn->query("SET NAMES {$this->dbConfig['charset']}"); //Here is line 70
}catch (PDOException $e){
die('Database connection failed'.$e->getMessage());
}
}