Forum Moderators: coopster
you have:
$SQL_Exec_String = "Delete From People Where ID = '$id'";
since $id is in single quotes access thinks you are giving it a character variable instead of a numeric one like it is in the database. Hence type mismatch.
try:
$SQL_Exec_String = "Delete From People Where ID = $id";
you realize many of your problems stem from trying to stick a square peg in a round hole. Most people who work with access (or sql server) stay in the microsoft way of doing things and code in ASP. People who code in PHP tend to use mySQL, PostGress, or other databases so there is no need for ODBC.
if some condition is met then do something is called a control structure(If-Then). There are other control structures such as If-Then-Else, For, Do-While, etc.
Check out the manual entry:
[us2.php.net...]