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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.