What will be connection string to Access database file with PHP

后端 未结 4 1288
轻奢々
轻奢々 2021-01-21 10:06

I installed WAMP, I have access database file in project folder, but don\'t have installed Access on my computer.

Can I read and update Access file with PHP even I don\'

4条回答
  •  春和景丽
    2021-01-21 10:59

    // Microsoft Access

    1. Open the Administrative Tools icon in your Control Panel.
    2. Double-click on the Data Sources (ODBC) icon inside.
    3. Choose the System DSN tab.
    4. Click on Add in the System DSN tab.
    5. Select the Microsoft Access Driver.
    6. Click Finish.
    7. In the next screen, click Select to locate the database.
    8. Give the database a Data Source Name (DSN).
    9. Click OK.

      $dsn='database.accdb';
      $username='';
      $password='';
      $connect=odbc_connect($dsn, $username, $password);
      

提交回复
热议问题