[quote user="Quincy5"]What does that UPDATE do then? I don't really know anything about databases etc; my best guess is it just puts the wrong accepted and rejected values into the database.
[/quote]
No WHERE clause: would have updated the values in every record in the table