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
Staff page badges are not showing up.
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="WanknessHD" data-source="post: 395513" data-attributes="member: 3511"><p>Okay I understand, are you able to show me an example I could go off of? Im not very good at php.</p><p>I was basically just trying to copy it from showing badges from my profile page.</p><p>[PHP]<?php</p><p> $getBadges = mysql_query("SELECT * FROM `user_badges` WHERE `user_id` = '".$user['id']."' ORDER BY rand() LIMIT 13");</p><p> if (mysql_num_rows($getBadges) == 0)</p><p> echo 'You do not have any badges!';</p><p> else</p><p> {</p><p> while ($badgeInfo = mysql_fetch_array($getBadges))</p><p> { </p><p> echo '<img src="{url}/swf/c_images/album1584/'.$badgeInfo['badge_id'].'.gif" style="display:inline;" draggable="false"> '; </p><p> }</p><p> } </p><p> </p><p> ?>[/PHP]</p></blockquote><p></p>
[QUOTE="WanknessHD, post: 395513, member: 3511"] Okay I understand, are you able to show me an example I could go off of? Im not very good at php. I was basically just trying to copy it from showing badges from my profile page. [PHP]<?php $getBadges = mysql_query("SELECT * FROM `user_badges` WHERE `user_id` = '".$user['id']."' ORDER BY rand() LIMIT 13"); if (mysql_num_rows($getBadges) == 0) echo 'You do not have any badges!'; else { while ($badgeInfo = mysql_fetch_array($getBadges)) { echo '<img src="{url}/swf/c_images/album1584/'.$badgeInfo['badge_id'].'.gif" style="display:inline;" draggable="false"> '; } } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Staff page badges are not showing up.
Top