Can't connect my Microsoft access database file using php (Xampp)
<p>I made a php webpage with login and password it used run on my previous system (xampp was ran database in that system) but after installed xampp in my system  I started  Apcahce and Mysql (running succesfully). The login page ran all fine but once i tried to login it s giving me this error</p>

<pre><code>**could not find driver
 Notice: Undefined variable: db in C:\xampp\htdocs\FINALschool\GLOBAL1.php on line 12
Fatal error: Call to a member function query() on null in  C:\xampp\htdocs\FINALschool\GLOBAL1.php on line** 
</code></pre>

<p>The  on my link to db folder is</p>

<pre><code>&lt;?php   
$dbName = $_SERVER["DOCUMENT_ROOT"] . "\FINALSCHOOL\REG.MDB";
if (!file_exists($dbName)) {
    die("Could not find database file.");
}
try{
    $db = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=$dbName;Uid=Admin");
}
catch(PDOException $e){
    echo $e-&gt;getMessage();
} 
</code></pre>

<p>?></p>

<p>I have also checked my user name and password for the login with  my database and it is all the same so please help
Also my xampp is connected to it's default port</p>