Shaz
Member
- Jan 8, 2015
- 57
- 1
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;" />';
}
?>
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;" />';
}
?>