• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Stats in me.php

Newbie Spellweaver
Joined
May 19, 2013
Messages
67
Reaction score
4
I'm trying to rip this:
Tequiro - Stats in me.php - RaGEZONE Forums


But I end up getting this:

Tequiro - Stats in me.php - RaGEZONE Forums


It keeps adding the place, username & diamonds but I only want that at the top.
I also don't know how to make it automatically count from 1 to 10.

My code is: <div id="container"> <div id="content" style="posit - Pastebin.com
Example site: Just a moment...
 
Loyalty
Loyal Member
Joined
May 4, 2012
Messages
1,763
Reaction score
884
vip_points? or is it supposed to be credits? What exactly does diamanten stand for?
 
Upvote 0
Loyalty
Loyal Member
Joined
May 4, 2012
Messages
1,763
Reaction score
884
nvm , here's the fix

Code:
<div id="container">
                <div id="content" style="position: relative" class="clearfix">
                    <div id="column1" class="column">
                        <div class="habblet-container ">
                            <div class="cbb clearfix darkred ">
                                <h2 class="title">Top 10 Rijkste Habbo's in Diamanten</h2>
                                <table cellpadding="4" cellspacing="0" width="100%">
                                    <tr>
                                        <td class="tablesubheader" align="center"><b>Plaats</b></td>
                                        <td class="tablesubheader" align="center"><b>Habbonaam</b></td>
                                        <td class="tablesubheader" align="center"><b>Diamanten</b></td>
                                    </tr>

                                    <tr>
                                        <?php
                                        $count = 1;

                                        $users_a = mysql_query("SELECT * FROM users ORDER BY vip_points DESC LIMIT 10");
                                        while($users = mysql_fetch_assoc($users_a)){
                                        $row = mysql_fetch_assoc($row = mysql_query("SELECT * FROM users WHERE id = '".$users['id']."' LIMIT 10"));


                                        ?>
                                    <tr>
                                        <td class="tablerow1" align="center"><?php echo $count; ?></td>
                                        <td class="tablerow2" align="center"><a href="home/<?php echo $row['username']; ?>"><?php echo $row['username']; ?></td>
                                        <td class="tablerow3" align="center"><?php echo $users['vip_points']; ?></td>

                                    </tr>

                                    <?php $count++; } ?>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
 
Upvote 0
Back
Top