For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2005 > which method is the best









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author which method is the best
chris

2005-09-30, 6:56 pm

Hi,

I have already post this question but i still wonder which is the best
method for connecting Access with PHP. I know that Access is not the ideal
database, but for some reason i have to do with Access.
Are there advantages of some one?
Thanks

Chris

$connect = odbc_connect ('DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=d:\access\newres.mdb', '', '');

or
$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);



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com