> LIST THE TEAMS function list_teams($div){ foreach($div as $k => $v){ $r = query("select * from nhl_teams where division = '".$k."' order by city"); echo '