<?php
$hs = $row_rsFootball['homeScore'];
$os = $row_rsFootball['oppenentScore'];
$cd = date("Y-m-d");
$gd = date("Y-m-d", strtotime($row_rsFootball['gameDate']));
//$ct = $row_rsFootball['countdown'];
if ($hs > $os AND $gd == $cd) {
print "<font color='blue'>winning</font>\n";
} else if ($hs < $os AND $gd == $cd) {
print "<font color='red'>loosing</font>\n";
} else if ($hs == $os AND $gd <= $cd) {
print "<font color='brown'>Tie</font>\n";
} else if ($hs > $os AND $gd <= $cd) {
print "<font color='blue'>Won</font>\n";
} else if ($hs < $os AND $gd <= $cd) {
print "<font color='red'>Lost</font>\n";
} else if ($gd > $cd) {
print ($row_rsFootball['countdown']);
}
// echo("HS: ".$hs." OS: ".$os." GD: ".$gd." CD: ".$cd);
// end if ?>