teamid == $team->id) { $query_user_table = "update user set teamid = 0 where id = $user->id"; $result_user_table = mysql_query($query_user_table); $query_team_table = "update team set nusers=nusers-1 where id=$team->id"; $result_team_table = mysql_query($query_team_table); if ($result_user_table && $result_team_table) { $team_name = $team->name; page_head("Quit $team_name"); echo "