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

18 lines
540 B
PHP
Raw Normal View History

2017-11-09 17:43:34 +01:00
<?php
global $OPTIONS;
require_once (__DIR__ . '/../internals/base.php');
require_once (__DIR__ . '/../internals/database.php');
require_once (__DIR__ . '/../internals/highscores.php');
Database::connect();
$entries = Database::sql_query_single_prep('SELECT * FROM ms4_highscoreentries WHERE GAME_ID = :id ORDER BY POINTS DESC LIMIT 50',
[
[ ':id', $OPTIONS['gameid'], PDO::PARAM_INT ]
]);
for ($i = 0; $i < count($entries); $i++)
{
2018-01-03 21:02:40 +01:00
print($entries[$i]['POINTS'] . '||' . htmlspecialchars($entries[$i]['PLAYER']) . "\r\n");
2017-11-09 17:43:34 +01:00
}