raf
Active Member
Hiya, i need help with top 5 lvl php code/sql query, below u can find code i found on otland, to show top 5 magic level, but i edited it to show level.
also, if anyone has / could write, code for time left to server save, like on shadowcores.twifysoft.net
thanks in advance!
PHP:
<?php
$zap = $SQL->query('SELECT `name`, `level` FROM `players` WHERE `group_id` < '.$config['site']['groups_hidden'].' AND `name` != "Account Manager" ORDER BY `level` DESC, `experience` DESC LIMIT 5;');
$number_of_rows = 0;
foreach($zap as $wynik)
{
$number_of_rows++;
echo '<tr><td style="width: 80%"><strong>'.$number_of_rows.'</strong>. <a href="index.php?subtopic=characters&name='.urlencode($wynik['name']).'" >'.$wynik['name'].'</a><td> <td><span class="label label-info">Lvl. '.$wynik['level'].'</span></td></tr>';
}
?>
also, if anyone has / could write, code for time left to server save, like on shadowcores.twifysoft.net
thanks in advance!