·  PHP – DB – Access – Connect

 

- Info:

  - This tutorial shows how to use PHP to connect to Access DB.

 

- Example:

  - Create PHP Console Application Read.php.

 

    Read.php

    <?php

 

      #CONNECT TO DB.

      $db   = 'D:\Temp\PHP\guestbook.mdb';

      $conn = new COM('ADODB.Connection');

      $conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db");

 

    ?>