window.location.href = "../../"';
}
include '../../mysqlHandler.php';
openConnection();
$user_id = 0;
if (!empty($_COOKIE['user'])) {
$result = executeQuery('select user_id from user where username ="' . $_COOKIE['user'] . '"');
}
// getting the user's id based on their cookie>username
if ($result) {
while ($row = mysql_fetch_array($result)) {
$user_id = $row['user_id'];
}
}
?>
';
include '../../t/userBar.php';
?>
High Scores List
Your Best Five Scores
0) {
echo '';
echo '';
echo '| | ';
echo 'Score | ';
echo '
';
if ($scores) {
while ($row = mysql_fetch_array($scores)) {
echo '';
echo '| ';
echo++$count;
echo ' | ';
echo $row['score'];
echo ' | ';
echo '
';
}
}
echo '
';
} else {
echo "You don't have any high scores yet.";
}
echo '
';
echo 'Improve your scores →';
echo '
';
?>
Global Top 10
| Rank |
User |
Score |
';
echo '';
echo $ranking;
echo ' | ';
echo '';
echo $row['username'];
echo ' | ';
echo '';
echo $row['score'];
echo ' | ';
echo '';
}
}
?>
Improve your scores →