Ejemplo n.º 1
0
</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':
                        $res = 'Lost';
                        break;
                }
            } else {