diakosz3456
New Member
- Joined
- Apr 6, 2020
- Messages
- 46
- Reaction score
- 1
Hey, can someone help me with this? I need to add TOP 10 players on my page, but look please whats wrong
I paste this code to layout.php
I paste this code to layout.php
Code:
<div id="Themebox">
<div id="NewcomerBox" class="Themebox" style="background-image:url(<?PHP echo $layout_name; ?>/images/themeboxes/highscores.gif);height:200px;">
<?php
$TopPlayers = $SQL->query("SELECT `name`, `experience`, `level` FROM `players` ORDER BY `experience` DESC LIMIT 5")->fetchAll();
$Counter = 1;
?>
<table cellspacing="0" cellpadding="5" border="0" width="0%">
<?php foreach($TopPlayers as $Player): ?>
<tr>
<td><a href="index.php?subtopic=characters&name=<?php echo urlencode($Player['name']); ?>"><?php echo $Player['name']; ?></a></td>
<td align="right" width="5%"><?php echo $Player['level']; ?> level</td>
</tr>
<?php endforeach; ?>
<div class="Bottom" style="background-image:url(<?PHP echo $layout_name; ?>/images/general/box-bottom.gif);">
</div>
</table>