RE: [PHP-WIN] connecting to a database using ODBC

2002-03-26 Thread Svensson, B.A.T. (HKG)
You need more than "sample code" to access an AccessDB via ODBC. For example: you need to know weather a proper ODBC data source has been set up, among other things... >-Original Message- >From: Someone Somewhere [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, March 26, 2002 3:10 PM >To: [EMA

Re: [PHP-WIN] connecting to a database using ODBC

2002-03-26 Thread Piotr Pluciennik
Hi, **first step: create DSN in Windows (Control Panel, ODBC) and bind it with your Access database **then in php code: $dbhandle = odbc_connect('YourDSN', '',''); if($dbhandle == 0) { die('Error connecting DB'); // or error handler } *here do your