↑ Return to History

2011-2012 Results

$result = mysql_query($query);
echo ”

“; echo “”;while ($row=mysql_fetch_assoc($result)) {if ($row[‘game_type’] != $pretype){
if ($row[‘game_type’] == 1){
echo ”
“;
}if ($row[‘game_type’] == 2){
echo ”
“;
}if ($row[‘game_type’] == 3){
echo ”
“;
}if ($row[‘game_type’] == 4){
echo ”
“;
}
}$pretype = $row[‘game_type’];$wlt = “{$row[‘our_score’]}-{$row[‘their_score’]}”;
if($row[‘our_score’] > $row[‘their_score’]){
$wlt = “W $wlt”;
}
elseif($row[‘our_score’] < $row[‘their_score’]){
$wlt = “L $wlt”;
}
elseif($row[‘played’]==1){
$wlt = “T $wlt”;
}if($row[‘played’]==0) {
$wlt = “”;
}$date_out = date(‘M j’,strtotime($row[‘date’]));
$time_out = date(‘g:i a’, strtotime($row[‘time’]));
echo ”
“;
echo “{$row[‘game_type’]} {$row[‘game_side’]}”;
echo “{$row[‘location’]}”;
if ($row[‘home’]) {
echo “{$row[‘opponent’]}”;
}
else {
echo “@{$row[‘opponent’]}”; }
echo “$wlt”;echo “”;
}
echo ”

Date and Time Side Location Opponent Result
$date_out, $time_out

“;
}

?>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

css.php