teamid == $team->id) { mysql_query("update user set teamid=0 where id=$user->id"); team_update_nusers($team); page_head("Quit $team->name"); echo "You have been removed from id>$team->name"; } else { page_head("Unable to quit team"); echo "Team doesn't exist, or you don't belong to it.\n"; } page_tail(); ?>