I'm trying to edit two entries at once, like so:
mysql_query ("UPDATE clients SET spotlight= 'no' WHERE spotlight= 'yes'");
mysql_query ("UPDATE clients SET spotlight= 'yes' WHERE c_name= '{$_POST['c_name']}' AND spotlight='no'");
What i've been trying to do is a form for a user to set one particular person as a 'spotlight' which allows only that person to appear up on a particular section of the site. The code above, what I wanted it to do is to essentially unset every entry that has yes in spotlight, and then resets only one entry to have yes, which is selected from a form by the user.
It unsets everything fine, its just the resetting one person to the spotlight where i'm having the problem. Any help would be appreciated.