$query="UPDATE `our_guests` SET `username` ='".$userid."' WHERE `guest ID` = '".$id."'";
I was having trouble with that when I first started PHP and SQL. Some servers require you to do that. Oh yeah, next time, go to the SQL or the PHP message board, not the Apache board.