T201704211015
This commit is contained in:
@@ -29,11 +29,12 @@ if($cid == -1) {
|
|||||||
WHERE h."Categories_ID" = $1
|
WHERE h."Categories_ID" = $1
|
||||||
ORDER BY COALESCE(h."score", -1) DESC
|
ORDER BY COALESCE(h."score", -1) DESC
|
||||||
LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];*/
|
LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];*/
|
||||||
$overview = $db->query('SELECT u."name", h."score"
|
$overview = $db->query('SELECT u."name", h.score
|
||||||
FROM "Users" u JOIN "Highscores" h ON u."ID" = h."Users_ID"
|
FROM "Users" u LEFT OUTER JOIN
|
||||||
WHERE h."Categories_ID" = $1
|
(SELECT "Users_ID", "score"
|
||||||
ORDER BY h."score" DESC
|
FROM "Highscores"
|
||||||
LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];
|
WHERE "Categories_ID" = $1) h ON u."ID" = h.Users_ID
|
||||||
|
', array($cid))['data'];
|
||||||
print_r($overview);
|
print_r($overview);
|
||||||
foreach($overview as $row) {
|
foreach($overview as $row) {
|
||||||
$name = $row['name'];
|
$name = $row['name'];
|
||||||
|
|||||||
Reference in New Issue
Block a user