Esempio n. 1
0
 public function __construct()
 {
     $this->exception = null;
     // create pdo connection
     $this->connection = new pdo("mysql:" . "host=" . dbConn::getHost() . ";" . "dbname=" . dbConn::getDatabase() . ";" . "charset=UTF8", dbConn::getUsername(), dbConn::getPassword());
     $this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     $this->connection->beginTransaction();
 }