replyprivate 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());
}
}
There may be something wrong with the way you call the database. Check your code and read the documentation
Post the code and have a look