title: How to connect access database ".accdb" with php
body: <p>I am try to connect access DB with PHP by using this code-</p>
  <pre><code>$file = FILE_PATH.&quot;/SRWOSystem.accdb&quot;;
  try{
      $dbh = new PDO(&quot;odbc:Driver={Microsoft Access Driver (*.mdb , *.accdb)};Dbq=$file&quot;);
  }catch(PDOException $e){
      echo $e-&gt;getMessage();
  }
  </code></pre>
  <p>Getting this error:</p>
  <blockquote>
  <p>SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified</p>
  </blockquote>
  <p>How we resolve that.please help</p>