I am trying to use an update query to change values held in a database, the new values I am trying to store are held in php variables. I'm not sure what it is I'm doing wrong.
mysql_query("UPDATE user SET status='full' WHERE user_id = '$user_id'")or die(mysql_error());
here is the error message
Duplicate entry '91317691' for key 1
thanks in advance