MSAccess & PHP Help!!!

wxdqz

New Member
Hi

I'm an ASP 'developer', but I'm moving towards using PHP. I'm also abit of a dumbass, and I'm trying to connect to a microsoft access database. Heres the crap that I wrote. Can somebody please tell me what I'm doing wrong?

I'm getting this error msg:
Parse error: parse error in G:\Inetpub\wwwroot\PHP\access.php3 on line 34

Line 34, is referring to my connect string.
ADO is alot easier to use!

<?php
$db = ODBC_Connect("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=G:\inetpub\wwwroot\PHP\php.mdb",,);
$res = ODBC_Exec($db, "SELECT Name FROM user");
while (ODBC_Fetch_Row($res)) {
echo "<P>".ODBC_Result($res, 'Name')."</P>";
}
?>

Thanks

David
 
Back
Top