ODBC and MS Access
Posted: Wed Aug 20, 2003 10:23 am
Hi all,
Does anyone know how to solve this error?
Here is the code for connecting to the db.
Thanks,
John M
Does anyone know how to solve this error?
Code: Select all
Warning: SQL error: , SQL state 00000 in SQLConnect in D:\Inetpub\wwwroot\mis\jm\index.php on line 4Code: Select all
<?php
putenv('TEMP=c:\\temp');
$odbc_conn=odbc_connect('Driver={Microsoft Access Driver (*.mdb)};','PhoneMaster_local','admin','*****');
if (! $odbc_conn)
{
echo "Failed to connect";
echo odbc_errormsg();
}
?>John M