I have been looking for some good simple examples for such a situation. I made the mistake of contracting for space on a Windows NT server because I thought "Hey, I know a bit about Access, this .ASP stuff can't be so bad?" Boy was I wrong. The Front Page database wizards do help you get going...but when you are totally green like me, they get you good and lost pretty quickly too.
Anywho....
Something that would have helped me in the preceeding example would be the following changes...
<?php
// Program to test connecting to a Microsoft Access ODBC Data Source
$connection = odbc_connect("[DSN name]", "", "");
print "Connected to datasource<BR><BR>";
if ($result = odbc_exec($connection, "SELECT * FROM [TABLE OR ACCESS QUERY NAME]"))
print "Command executed successfully<BR><BR>";
else
print "Error while executing command<BR><BR>";
// Print results (Number after $result in parentheses refers to field number in each row)
while(odbc_fetch_row($result))
print odbc_result($result, 1) . " " . odbc_result($result, 2) . " " . odbc_result($result, 3) . " " . odbc_result($result, 4) . " " . odbc_result($result, 5) . "<BR>";
odbc_close($connection);
print "<BR>Connection closed.";
?>
Now what I need are some concrete examples of INSERT and UPDATE queries to an Access DB via php!