Here is a basic connect script. I would stringly recommend against using access, use mysql instead.




     // Program to test connecting to a Microsoft Access ODBC Data Source
     $connection = odbc_connect("postcard", "", "");
     print "Connected to datasource<BR><BR>";

     if ($result = odbc_exec($connection, "SELECT * FROM postcard"))
       print "Command executed successfully<BR><BR>";
       print "Error while executing command<BR><BR>";

// Print results
print odbc_result($result, 1) . " " . odbc_result($result, 2) . " " . odbc_result($result, 3) . " " . odbc_result($result, 4) . " " . odbc_result($result, 5) . "<BR>";

     print "<BR>Connection closed.";




From: Matthew Perry <[EMAIL PROTECTED]>
Subject: [PHP-DB] microsoft access
Date: Thu, 30 Sep 2004 21:28:48 -0500

Does anyone know of a good online source for using php and microsoft access. I don't want to have to use asp.
Thank you for your time.

Matthew Perry

PHP Database Mailing List (
To unsubscribe, visit:

MSNŽ Calendar keeps you organized and takes the effort out of scheduling get-togethers. Start enjoying all the benefits of MSNŽ Premium right now and get the first two months FREE*.

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to