Connecting to MS Access 2007 using ODBC_CONNECT - error in driver?
问题 I have been successful in querying a Microsoft Access 2003 database (.mdb file) and now I am trying to do the same for a Microsft Access 2007. I have tried the following: if($type[1]=='accdb'){ echo 'accdb'; //2007 Microsoft Access $connection = odbc_connect("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=$mdbFilename;Persist Security Info=False;", $username, $password); }else{ echo 'mdb'; //2000, 2003 Microsoft Access $connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=