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

2002-03-26 Thread Svensson, B.A.T. (HKG)
6, 2002 3:10 PM >To: [EMAIL PROTECTED] >Subject: [PHP-WIN] connecting to a database using ODBC > > >Can anyone offer some help > >I need to connect to an acces database, Using php on Windows with Apache. >If anyone has some sample code I would greatly appreciate it I am

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

[PHP-WIN] connecting to a database using ODBC

2002-03-26 Thread Someone Somewhere
Can anyone offer some help I need to connect to an acces database, Using php on Windows with Apache. If anyone has some sample code I would greatly appreciate it I am lost about the wholeODBC thing. Cirkit _ Chat with friends on