MySQL Forums
Forum List  »  PHP

Re: Problems with UPDATE
Posted by: Thomas Andén
Date: June 11, 2005 01:10PM


I've seemed have to solve the problem myself after some trial end error coding. If I use the following code it works:

$query = "UPDATE `tidbokning` SET `$_POST[uppdatera]`= '$info_att_uppdatera' WHERE id = '1'";

A version of this is also what phpmyadmin wants as the suggested php code:

$query = 'UPDATE `tidbokning` SET `$_POST[uppdatera]`= "$info_att_uppdatera" WHERE `id` = '1';

However, in the above code the variables doesn't get evaluated and that's NOT what we want isn't!?

Well, anyway, hopefully anyone out there will get som help form me solving my own problems in the open :-)


Options: ReplyQuote

Written By
June 10, 2005 03:35AM
June 11, 2005 10:02AM
Re: Problems with UPDATE
June 11, 2005 01:10PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.