Okay need some help on opening an Access database with PHP. Below is the code that I am using to connect to the database and print out an array. I get this error “could not find driver Fatal error: Call to a member function query() on a non-object…
try{
$dbh = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=sim.mdb;Uid=Admin");
}
catch(PDOException $e){
echo $e->getMessage();
}
$stmt2 = $dbh->query ("SELECT * FROM Names");
$array = $stmt2->fetchall(PDO::FETCH_ASSOC);
print_r ($array);
Make sure to uncomment the following line in your php.ini: