ODBC Microsoft Access 97 Driver SQLExecDirect

M

Michael Taouk

I am using the "odbc_exec" function in php to update data
in a Microsoft Access 97 database, as follows:

$sqlUpdate = 'UPDATE tblFactoryItems SET comments ="'.
$_POST['comment'] . '" WHERE ItemID=1';
odbc_exec($cnx, $sqlUpdate);

I get an error:
Warning: SQL error: [Microsoft][ODBC Microsoft Access 97
Driver] Too few parameters. Expected 1., SQL state 07001
in SQLExecDirect

Where can I get info about 'SQLExecDirect' so that I can
debug the code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top