I need to update a table called "pm" where the "id" column is the value in "$id" variable and the "id2 column value is 1. the columns need to update are "user1read" and "user2read". when im runnig it it says wrong syntax, can any body help?
UPDATE `pm_system`.`pm` SET (user1read='no', user2read='yes')
WHERE (id='".$id."' and id2='1')
thanks.