From d25852a079c1001ebc463f82d8632cc9801fe4eb Mon Sep 17 00:00:00 2001 From: hecht Date: Thu, 1 Sep 2011 18:39:52 +0000 Subject: [PATCH] okay, even forgotten to set the tabel to query to --- ag/ranglist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ag/ranglist.php b/ag/ranglist.php index b0c9ef5..4ae9bfa 100644 --- a/ag/ranglist.php +++ b/ag/ranglist.php @@ -40,7 +40,7 @@ function displayHighscore($wahl, $char_name, $user, $char_vorhanden){ if($wahl == 'geld') { $choice_s = mysql_query('SELECT geld, id FROM user where id >= 2 ORDER BY geld DESC LIMIT 50'); } else { - $sql = 'SELECT c.name, c.level, c.besitzer, c.starke, c.preis, c.speed, c.glueck, c.bild, c.verteidigung, c.ausdauer, c.siege, c.niederlagen, c.id as charid, starke+verteidigung+speed+ausdauer+glueck as powerlevel ' . + $sql = 'SELECT c.name, c.level, c.besitzer, c.starke, c.preis, c.speed, c.glueck, c.bild, c.verteidigung, c.ausdauer, c.siege, c.niederlagen, c.id as charid, starke+verteidigung+speed+ausdauer+glueck as powerlevel FROM chars c ' . 'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50'; // Uncomment for hp/mp in PL