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
how to make random vip users only show...
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="Cronus" data-source="post: 216330" data-attributes="member: 35689"><p>Hello,</p><p> </p><p>How do I make it so that this script</p><p> </p><p> </p><p>[PHP]<?php</p><p> $GetUsers = mysql_query("SELECT * FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 3");</p><p> while($Users = mysql_fetch_assoc($GetUsers))</p><p> {</p><p> echo "<div class=\"ContentBox\"><div class=\"BoxHeader\" id=\"blue\">{$Users['name']}</div><div class=\"BoxContent\"><p>";</p><p> $GetUsers = mysql_query("SELECT username,motto,last_online,online,look FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 3");</p><p> while($Users = mysql_fetch_assoc($GetUsers))</p><p> {</p><p> if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; }</p><p> echo "<img style=\"position:absolute;\" src=\"{url}/avatar.php?figure={$Users['look']}&direction=2&head_direction=3&gesture=sml&size=2\">"</p><p> ."<p style=\"margin-left:80px;margin-top:20px;\"><strong>{$Users['username']}</strong><br>{$Users['motto']}</p>"</p><p> ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";</p><p> }</p><p> echo "</p></div></div>";</p><p> }</p><p> ?>[/PHP]</p><p> </p><p> </p><p>Only shows users not the owners or any staff..</p></blockquote><p></p>
[QUOTE="Cronus, post: 216330, member: 35689"] Hello, How do I make it so that this script [PHP]<?php $GetUsers = mysql_query("SELECT * FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 3"); while($Users = mysql_fetch_assoc($GetUsers)) { echo "<div class=\"ContentBox\"><div class=\"BoxHeader\" id=\"blue\">{$Users['name']}</div><div class=\"BoxContent\"><p>"; $GetUsers = mysql_query("SELECT username,motto,last_online,online,look FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 3"); while($Users = mysql_fetch_assoc($GetUsers)) { if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; } echo "<img style=\"position:absolute;\" src=\"{url}/avatar.php?figure={$Users['look']}&direction=2&head_direction=3&gesture=sml&size=2\">" ."<p style=\"margin-left:80px;margin-top:20px;\"><strong>{$Users['username']}</strong><br>{$Users['motto']}</p>" ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>"; } echo "</p></div></div>"; } ?>[/PHP] Only shows users not the owners or any staff.. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
how to make random vip users only show...
Top