diakosz3456
New Member
- Joined
- Apr 6, 2020
- Messages
- 46
- Reaction score
- 1
I have a problem with the TOP 10 Players table. the table appears right, but the player names are very extended.
I paste this code to layout.php . Please help whats wrong ;c
Code:
<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 width="0%"><?php echo $Counter; $Counter++; ?>.</td>
<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>