Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
2 things?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sledmore" data-source="post: 212153" data-attributes="member: 591"><p>In your topstats you're fetching more than enough data this should work better for you:</p><p> </p><p>[PHP]</p><p><!DOCTYPE html></p><p><html lang="en"></p><p> <head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8"></p><p> <title>HabZon: eXpert</title></p><p> </p><p> <?php include_once('header.php'); ?></p><p> <li class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/{skin}/images/id.png" style="vertical-align: middle;"></a><span></span></li></p><p> <li class="selected"><strong>Commmunity <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li></p><p><li><a href="{url}/shop">Shop <img src="{url}/app/tpl/skins/{skin}/images/new_11.gif" style="vertical-align: middle;"></a><span></span></li></p><p> </ul></p><p><div id="ibxs-online"><div class="rounded"></p><p><div style="padding-top:7px;"></p><p><a href="/client" class="new-button green-button" style="float:left;" target="ClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter HabZon</b><i></i></a></div></p><p><span style="margin-top:-2px"></p><p>{online} User(s) online </span></p><p></div></div></p><p></div></p><p></div></p><p><div id="content-container"></p><p><div id="navi2-container" class="pngbg"></p><p><div id="navi2" class="pngbg clearfix"></p><p><ul></p><p> <li class=""><a href="{url}/community">Community</a></li></p><p> <li class=""><a href="{url}/news">News</a></li></p><p> <li class=""><a href="{url}/Management">Management</li></p><p><li class="selected">Administration</a></li></p><p><li class=""><a href="{url}/Events">Events</a></li></p><p><li class=" last"><a href="{url}/logout" class="userlink" id="signout">Sign Out</a></p><p> </ul></p><p> </div></p><p> </div></p><p><div id="container"></p><p> </p><p> <div></p><p> <div class="content"></p><p> <div id="column" class="column"></p><p> <div class="habblet-container"></p><p> <div class="cbb clearfix blue "></p><p><div class="box-content"> </p><p><h2 class="title">Respects</h2></p><p><table width="100%"></p><p> <tr> <?php</p><p> </p><p> </p><p>$userstats_a = mysql_query("SELECT * FROM user_stats ORDER BY RespectGiven DESC LIMIT 10");</p><p>while($userstats = mysql_fetch_assoc($userstats_a)){</p><p>$row = mysql_fetch_assoc($row = mysql_query("SELECT * FROM users WHERE id = '".$userstats['id']."' LIMIT 10"));</p><p> </p><p> </p><p>?></p><p> </p><p> </p><p><tr><td width="5px"> </td></p><p><td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $avatar; echo $row['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td></p><p><td width="195px"><a href="/stats"><b><?php echo $row['username']; ?></b></a><br /></p><p><?php echo $userstats['RespectGiven']; ?> Respects</td></p><p></tr></p><p> </p><p> </p><p><?php } ?></p><p></table></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </p><p> </p><p><div id="column" class="column"><div class="habblet-container "><div class="cbb clearfix blue "></p><p><div class="habblet box-content"> </p><p><h2 class="title"><span style="float: middle;">Credits</span> </h2></p><p><div align="middle"></p><p><table width="100%"></p><p> </p><p> </p><p><tr></p><p><?php</p><p> </p><p> </p><p>$users_a = mysql_query("SELECT * FROM `users` WHERE `rank` <= '2' ORDER BY `credits` DESC LIMIT 10");</p><p>while($users = mysql_fetch_assoc($users_a)){</p><p> </p><p>?></p><p> </p><p> </p><p><tr><td width="5px"> </td></p><p><td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $users['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td></p><p><td width="195px"><a href="/users"><b><?php echo $row['username']; ?></b></a><br /></p><p><?php echo $users['credits']; ?> Credits</td></p><p></tr></p><p> </p><p> </p><p><?php } ?></p><p></table></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </div></p><p> </p><p> </p><p> </p><p><div id="column" class="column"><div class="habblet-container "><div class="cbb clearfix blue "> </p><p><div class="habblet box-content"></p><p><h2 class="title"><span style="float: middle;">Pixels</span> </h2></p><p><div align="middle"></p><p><table width="100%"></p><p> </p><p> </p><p><tr> <?php</p><p> </p><p> </p><p>$users_a = mysql_query("SELECT * FROM `users` WHERE `rank` <= '2' ORDER BY `activity_points` DESC LIMIT 10");</p><p>while($users = mysql_fetch_assoc($users_a)){</p><p> </p><p>?></p><p> </p><p> </p><p><tr><td width="5px"> </td></p><p><td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $users['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td></p><p><td width="195px"><a href="/users"><b><?php echo $row['username']; ?></b></a><br /></p><p><?php echo $users['activity_points']; ?> Pixels</td></p><p></tr></p><p> </p><p> </p><p><?php } ?></p><p></table></p><p>[/PHP]</p></blockquote><p></p>
[QUOTE="Sledmore, post: 212153, member: 591"] In your topstats you're fetching more than enough data this should work better for you: [PHP] <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>HabZon: eXpert</title> <?php include_once('header.php'); ?> <li class="metab"><a href="{url}/me">{username} <img src="{url}/app/tpl/skins/{skin}/images/id.png" style="vertical-align: middle;"></a><span></span></li> <li class="selected"><strong>Commmunity <img src="{url}/app/tpl/skins/{skin}/images/forum_2.gif" style="vertical-align: middle;"></strong><span></span></li> <li><a href="{url}/shop">Shop <img src="{url}/app/tpl/skins/{skin}/images/new_11.gif" style="vertical-align: middle;"></a><span></span></li> </ul> <div id="ibxs-online"><div class="rounded"> <div style="padding-top:7px;"> <a href="/client" class="new-button green-button" style="float:left;" target="ClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter HabZon</b><i></i></a></div> <span style="margin-top:-2px"> {online} User(s) online </span> </div></div> </div> </div> <div id="content-container"> <div id="navi2-container" class="pngbg"> <div id="navi2" class="pngbg clearfix"> <ul> <li class=""><a href="{url}/community">Community</a></li> <li class=""><a href="{url}/news">News</a></li> <li class=""><a href="{url}/Management">Management</li> <li class="selected">Administration</a></li> <li class=""><a href="{url}/Events">Events</a></li> <li class=" last"><a href="{url}/logout" class="userlink" id="signout">Sign Out</a> </ul> </div> </div> <div id="container"> <div> <div class="content"> <div id="column" class="column"> <div class="habblet-container"> <div class="cbb clearfix blue "> <div class="box-content"> <h2 class="title">Respects</h2> <table width="100%"> <tr> <?php $userstats_a = mysql_query("SELECT * FROM user_stats ORDER BY RespectGiven DESC LIMIT 10"); while($userstats = mysql_fetch_assoc($userstats_a)){ $row = mysql_fetch_assoc($row = mysql_query("SELECT * FROM users WHERE id = '".$userstats['id']."' LIMIT 10")); ?> <tr><td width="5px"> </td> <td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $avatar; echo $row['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td> <td width="195px"><a href="/stats"><b><?php echo $row['username']; ?></b></a><br /> <?php echo $userstats['RespectGiven']; ?> Respects</td> </tr> <?php } ?> </table> </div> </div> </div> </div> <div id="column" class="column"><div class="habblet-container "><div class="cbb clearfix blue "> <div class="habblet box-content"> <h2 class="title"><span style="float: middle;">Credits</span> </h2> <div align="middle"> <table width="100%"> <tr> <?php $users_a = mysql_query("SELECT * FROM `users` WHERE `rank` <= '2' ORDER BY `credits` DESC LIMIT 10"); while($users = mysql_fetch_assoc($users_a)){ ?> <tr><td width="5px"> </td> <td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $users['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td> <td width="195px"><a href="/users"><b><?php echo $row['username']; ?></b></a><br /> <?php echo $users['credits']; ?> Credits</td> </tr> <?php } ?> </table> </div> </div> </div> </div> </div> <div id="column" class="column"><div class="habblet-container "><div class="cbb clearfix blue "> <div class="habblet box-content"> <h2 class="title"><span style="float: middle;">Pixels</span> </h2> <div align="middle"> <table width="100%"> <tr> <?php $users_a = mysql_query("SELECT * FROM `users` WHERE `rank` <= '2' ORDER BY `activity_points` DESC LIMIT 10"); while($users = mysql_fetch_assoc($users_a)){ ?> <tr><td width="5px"> </td> <td width="20px"><img src="http://www.habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $users['look']; ?>&size=s&direction=2&head_direction=2&gesture=sml&size=m" align="left"></td> <td width="195px"><a href="/users"><b><?php echo $row['username']; ?></b></a><br /> <?php echo $users['activity_points']; ?> Pixels</td> </tr> <?php } ?> </table> [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
2 things?
Top