T201704101415
This commit is contained in:
@@ -14,7 +14,7 @@ $limit = isset($_GET['limit']) ? $_GET['limit'] : 10;
|
|||||||
$offset = isset($_GET['offset']) ? $_GET['offset'] : 0;
|
$offset = isset($_GET['offset']) ? $_GET['offset'] : 0;
|
||||||
$db = new Database();
|
$db = new Database();
|
||||||
|
|
||||||
if($category == -1) {
|
if($cid == -1) {
|
||||||
$overview = $db->query('SELECT "name", "highscore" FROM "Users" ORDER BY "highscore" DESC
|
$overview = $db->query('SELECT "name", "highscore" FROM "Users" ORDER BY "highscore" DESC
|
||||||
LIMIT $1 OFFSET $2', array($limit, $offset))['data'];
|
LIMIT $1 OFFSET $2', array($limit, $offset))['data'];
|
||||||
foreach ($overview as $row) {
|
foreach ($overview as $row) {
|
||||||
|
|||||||
Reference in New Issue
Block a user