I have the following code:
$updateCode = mysql_query("UPDATE pages SET pageCode='$code' WHERE id='$userID' AND pageOrder='1'");
$updateProgress = mysql_query("UPDATE progress SET 1='yes' WHERE id='$userID'");
$updateRewards = mysql_query("UPDATE earnedRewards SET 1='yes' WHERE id='$userID'");
The first UPDATE works just fine and the pages table is updated. However, the second two UPDATES don’t work and the 1 column in progress and earnedRewards is not updated to ‘yes’.
Any thoughts on why the second two UPDATES aren’t working?
The column name is 1??? You should change the column name