Jump to content

UPDATE MS ACCESS database using PHP


crusty76

Recommended Posts

Hi,

I've managed to read a record and insert a record but doing a record UPDATE is beyond me.

 

I've tried.

$query1 = "UPDATE data SET Header = $Header WHERE ID1= $id";

 

$cr1=odbc_exec($connect,$query1);

but get an error message.

 

PLEASE help an aged old Crusty. Where have I gone wrong please.

Crusty

Link to comment
https://forums.phpfreaks.com/topic/87540-update-ms-access-database-using-php/
Share on other sites

Thanks for the suggestion. Tried that but it doesn't work.

Message is:-

Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression., SQL state 22005 in SQLExecDirect

 

It's all a bit frustrating. I've been at it now for a week :-)

 

crusty

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.