1
0
www.mikescher.com/www/pages/highscores_top50.php

15 lines
426 B
PHP

<?php
global $OPTIONS;
require_once (__DIR__ . '/../internals/base.php');
require_once (__DIR__ . '/../internals/database.php');
require_once (__DIR__ . '/../internals/highscores.php');
Database::connect();
$entries = Highscores::getOrderedEntriesFromGame($OPTIONS['gameid'], 50);
for ($i = 0; $i < count($entries); $i++)
{
print($entries[$i]['POINTS'] . '||' . htmlspecialchars($entries[$i]['PLAYER']) . "\r\n");
}