Re: Problems with UPDATE
You need to quote string values:
$query = "UPDATE tidbokning SET " .$_POST[uppdatera]. "= '$info_to_update' WHERE id = '1'";
Also, if your id column is a primary key, there is no need to use the LIMIT clause. :)
Jon Stephens
MySQL Documentation Team @ Oracle
MySQL Dev Zone
MySQL Server Documentation
Oracle
Subject
Written By
Posted
Re: Problems with UPDATE
June 10, 2005 06:26AM
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.