• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem with a table on page Gesior Acc 2012 tfs 1.2

diakosz3456

New Member
Joined
Apr 6, 2020
Messages
46
Reaction score
1
1587166147252.png

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&amp;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>
 
Back
Top