I want to replace some fields of a row in my table and leave other fields intact.
$res = mysql_query("REPLACE INTO User VALUES('updatedValue',...,...,'updatedValue2', 'updatedValue3'')");
The values with '...' should not be replaced. What code should I write ?
thanks
I want to replace some fields of a row in my table and leave
Moderator: General Moderators
Re: I want to replace some fields of a row in my table and l
Hi,
you have to use the MySQL Update command.
Example:
Greets.
you have to use the MySQL Update command.
Example:
Code: Select all
mysql_query("Update `User` SET `field1` = 'updatedValue1', `field2` = 'updatedValue2' WHERE `ID`=2");