BGSUsports.com

Football Results Database

‘;
exit(‘

Error retrieving games from database!
‘.
‘Error: ‘ . mysql_error() . ‘

‘);
}

echo “

“;

$gamesplayed = 0;

while ($game = mysql_fetch_array($games)) {
$date = $game[‘gamedate’];
$datelink = $game[‘datelink’];
$location = $game[‘location’];
$opponent = htmlspecialchars($game[‘oppname’]);
$result = $game[‘result’];
$bgscore = $game[‘score1’];
$oppscore = $game[‘score2’];
$notes = $game[‘notes’];
$story = $game[‘gamestory’];
$pointsfor += $game[‘score1’];
$pointsagainst += $game[‘score2’];
$gamesplayed++;
$gameswon = $game[‘wins’];

echo “

\n”;
if ($story == Y) {
echo “

\n”;
} else {
echo “

\n”;
}
echo “

\n”;
echo “

\n”;
echo “

\n”;
echo “

\n”;
echo “

\n”;
echo “

\n”;
}
echo “

Date Opponent Location Result Score Notes
$date $date $opponent $location $result $bgscore-$oppscore $notes
\n”;
echo “

Series Totals

\n”;
echo “

\n”;
echo “

\n”;
echo “

\n”;
echo “

Games Played: $gamesplayed
BGSU Points: $pointsfor
Opponent Points: $pointsagainst

\n”;

?>