###LABEL###'; if(!is_numeric($page) || $page < 1){ $page = 0; } else if($page > $maxpages){ $page = $maxpages; } // Determine the importance of the Highscores (the less occurece, the more important) $qry = db_query('Select count(*) as anzahl, art from highscore where runde = '.($maxpages-$page).' group by art order by anzahl,art asc'); while($row = mysqli_fetch_assoc($qry)){ $events[] = $row; } $qry = db_query('Select * from highscore where runde = '.($maxpages-$page).' order by art, datum'); echo '
Halle der Helden aus Runde '.($maxpages - $page).' | '."\n"; echo '||||
---|---|---|---|---|
'.$row['art'].' | '."\n"; $eventhighscore[$row['art']] .= '||||
Datum | '."\n"; $eventhighscore[$row['art']] .= 'Sieger | '."\n"; $eventhighscore[$row['art']] .= 'Trainer | '."\n"; $eventhighscore[$row['art']] .= '||
'.$row['datum'].' | '."\n"; if(!is_null($row['charid'])){ $eventhighscore[$row['art']] .= ''.displayCharLink($row['charid'], $row['charname']).' | '."\n"; } else { $eventhighscore[$row['art']] .= ''.$row['charname'].' | '."\n"; } if(!is_null($row['userid'])){ $eventhighscore[$row['art']] .= ''.displayUserLink($row['userid'], $row['username']).' | '."\n"; } else{ $eventhighscore[$row['art']] .= ''.$row['username'].' | '."\n"; } $eventhighscore[$row['art']] .= ''."\n";
echo ' | '."\n";
echo ''."\n";
echo '