Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/22/2013 in all areas

  1. Dear Support Plz help. I need to access .mdb databases thru php. This is my code <?php $dbName="Ancj.mdb"; if (!file_exists($dbName)) { die("Could not find database file."); } $db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$dbName; Uid=; Pwd=;"); ?> This is the error I am getting Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[iM002] SQLDriverConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified' in /a.php:13 Stack trace: #0 /a.php(13): PDO->__construct('odbc:DRIVER={Mi...') #1 {main} thrown in Plz help in fixing this error. Thanks in advance
    1 point
×
×
  • Create New...