在我的 PHP 代码中,我运行以下代码:
private function dbConnection() {
if (!is_resource($this->connessione))
try {
$this->connessione = new PDO($this->db_type.":dbname=".$this->db_name.";host=".$this->db_server, $this->db_username, $this->db_pass );
//echo "PDO connection object created";
$this->setupSQLStatement();
}
catch(PDOException $e)
{
echo $e->getMessage();
die();
}
}
它引发了异常“找不到驱动程序”。什么是驱动程序以及如何使用它?