Posted by Chris on 09/27/05 10:04
Hi,
I want to connect PHP pages to Access database. I saw there are at least to
ways:
$conn = new COM('ADODB.Connection');
$conn->Open("Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=d:\access\newres.mdb");
or
include('../adodb/adodb.inc.php');
$dsn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
Source=d:\access\newres.mdb;';
$db = NewADOConnection('ado_access');
$db->PConnect($dsn);
What should i take? Are there significant differences?
Thanks
Chris
[Back to original message]
|