okay, even forgotten to set the tabel to query to

main
hecht 13 years ago
parent 7c59518fb0
commit d25852a079

@ -40,7 +40,7 @@ function displayHighscore($wahl, $char_name, $user, $char_vorhanden){
if($wahl == 'geld') { if($wahl == 'geld') {
$choice_s = mysql_query('SELECT geld, id FROM user where id >= 2 ORDER BY geld DESC LIMIT 50'); $choice_s = mysql_query('SELECT geld, id FROM user where id >= 2 ORDER BY geld DESC LIMIT 50');
} else { } 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'; 'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50';
// Uncomment for hp/mp in PL // Uncomment for hp/mp in PL

Loading…
Cancel
Save