teamid; $result = mysql_query("select * from team where id=$id"); if ($result) { $team = mysql_fetch_object($result); mysql_free_result($result); } $team_name = $team->name; $team_id = $team->id; page_head("Quit $team_name"); echo " Please note before quitting a team: