Please can some explain to me why Im getting this error, when trying to insert into a MS Access database. (Cleary PHP love for Access, is about the same as Bush for Hussain... not much)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4.
There is nothing wrong with the code:
$insert = odbc_prepare($connect , "INSERT INTO fault (UserName, FaultClass, FaultLogged, DateLogged )
VALUES (\"".$formVars['UserName']."\", ". "\" ".$formVars['FaultClass']."\", "
."\"". $formVars['FaultLogged']."\", " . "\" ".$time."\");");
}
if(!odbc_execute($insert))
{
die(odbc_errormsg());
}
Ive tried odbc_execute, odbc_do....but still same error occurs.
Thanks in advance.