Access w/ PHP .ldb

D

David

I (have to) use PHP to connect to an Access DB. In order
to connect, I am using the Jet drivers:

$db = 'D:\\hosting\\Site\\db\\Access_db.mdb';
$conn = new COM("ADODB.Connection")
or die("Cannot start ADO");
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=$db");
$rs = $conn->Execute("SELECT * FROM Site");

$rs->Fields['Security']->Value;

$rs->Close();
$conn->Close();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top