<h2>Match Record</h2> <p> Match record for season is Played: {$team->Playedm} Won: {$team->Wonm} Drawn: {$team->Drawnm} Lost: {$team->Lostm}. </p> <img src="php/piewdl.php?w={$team->Wonm}&d={$team->Drawnm}&l={$team->Lostm}"> <br /> <table class="teamdisp"> <tr> \t<th>Date</th> \t<th>Opponent</th> \t<th>Result</th> </tr> EOT; $ret = mysql_query("select ind from histmatch where {$seas->queryof()} and result!='N' and result!='P' and ({$team->queryof('hteam')} or {$team->queryof('ateam')}) order by matchdate"); if ($ret) { while ($row = mysql_fetch_array($ret)) { $mtch = new HistMatch($seas, $row[0]); $mtch->fetchdets(); $oppteam = $mtch->Hteam; if ($oppteam->is_same($team)) { $oppteam = $mtch->Ateam; switch ($mtch->Result) { case 'H': $res = 'Won'; break; case 'D': $res = 'Drawn'; break; case 'A':
<b>{$seas->display_name()}</b>, the start date for which was {$seas->display_start()} and the end was {$seas->display_end()}. </p> EOT; ?> <table class="matchesd"> <tr> <th>Date</th> <th>Team A</th> <th>Team B</th> <th>Score</th> </tr> <?php $ret = mysql_query("select ind from histmatch where {$seas->queryof()} order by divnum,matchdate,hteam,ateam"); if ($ret && mysql_num_rows($ret) > 0) { $lastdiv = -99; while ($row = mysql_fetch_array($ret)) { $ind = $row[0]; $mtch = new HistMatch($seas, $ind); $mtch->fetchdets(); try { $mtch->fetchteams(); $mtch->fetchgames(); } catch (MatchException $e) { continue; } if ($mtch->Division != $lastdiv) { $lastdiv = $mtch->Division; print "<tr><th colspan=\"3\" align=\"center\">Division {$lastdiv}</th></tr>\n";