= 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 ' .
'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50';
// Uncomment for hp/mp in PL
// $sql = 'SELECT cl.clanzeichen, u.nickname, u.id as userid, 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+substring_index(hp,\',\',-1)/10+substring_index(mp,\',\',-1)/5 as powerlevel' .
// ' FROM chars as c INNER JOIN user as u on c.besitzer = u.id' .
// ' LEFT JOIN clan as cl on u.clan = cl.id ' .
// 'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50';
// echo $sql.'
';
$choice_s = mysql_query($sql);
}
?>
Platz | User | Geld | |||
---|---|---|---|---|---|
Platz | Charakter | Trainer | Siege / Niederlagen | Preis | |
align="center"> | align="center"> | align="center">??? | |||
align="center"> | align="center"> | align="center"> | align="center"> | align="center"> | align="center"> |