NYCPHP Meetup

[nycphp-talk] how to connect to an Access db *.mdb with a DSN and without a DSN.

Daniel Convissor danielc at analysisandsolutions.com
Mon Aug 24 12:41:48 EDT 2009


Hi Mangesh:

PHP connects to Access databases via the odbc_connect() function.  The 
$dsn parameter is the (simple, human readable) "Data Source Name" you've 
assigned to the resource in Windows' ODBC Data Source Administrator.

Try making a simple test script that uses odbc_connect().  Once you get 
that working, then try to bring ADODB into the mix.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list