Online'; else $status = 'Offline'; return($status); } $Realm = new Realm($System, $_COOKIE['RealmIndex']); $db = $Realm->CharactersDatabase; $sql = 'SELECT name, totaltime, online FROM characters ORDER BY totaltime DESC LIMIT '.$top; $result = $db->query($sql); $i = 0; echo('

Nejlepších '.$top.' herních časů

'); echo(''); while($vypis = $result->fetch_assoc()) { $i = $i + 1; echo(''); } echo('
'.$i.')'.$vypis['name'].' '.getTime($vypis['totaltime']).' '.getOnline($vypis['online']).'
'); ?>