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
[revCMS] show user_id badges wont 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="Shaz" data-source="post: 320407" data-attributes="member: 55688"><p>ive been trying to get the user thats logged in badges to show but its not showing up on the .php page itself</p><p>ive wrote a code but its not working, have a made any mistakes or anybody know a code that will show every badge the user id has?</p><p></p><p><?PHP</p><p></p><p>$getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id='{$userid}'");</p><p></p><p>while($rowing = mysql_fetch_assoc($getmybadges)){</p><p>$badge = $rowing['badge_id'];</p><p>echo '<img src="'.$badgealbum.'/'.$badge.'.gif" style="margin-right: 10px;" />';</p><p></p><p>}</p><p>?></p></blockquote><p></p>
[QUOTE="Shaz, post: 320407, member: 55688"] ive been trying to get the user thats logged in badges to show but its not showing up on the .php page itself ive wrote a code but its not working, have a made any mistakes or anybody know a code that will show every badge the user id has? <?PHP $getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id='{$userid}'"); while($rowing = mysql_fetch_assoc($getmybadges)){ $badge = $rowing['badge_id']; echo '<img src="'.$badgealbum.'/'.$badge.'.gif" style="margin-right: 10px;" />'; } ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[revCMS] show user_id badges wont show
Top