Sign in to follow this  
dschroeder

PHP and ms Access

Recommended Posts

Guest Basundhara Ghosal

Hi,

Please refer to the Includes folder FusionCharts for the same.

Ref.- FusionCharts_Evaluation > Code > PHP > Includes > DBConn.php

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi

You could easily modify the DBConn.php to connect to the MS Access database.

Here is a simple piece of code to connect to the database:

$db = 'C:Program FilesMicrosoft OfficeOffice10SamplesNorthwind.mdb';

$conn = new COM('ADODB.Connection') or exit('Cannot start ADO.');

// Connect
$conn->Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=$db") or exit('Cannot open with driver.');

Hope this helps. :)

Srividya

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this