Hey DevBest,
I'm having issue with the badges not being display on the home page
Images:
Code:
I'm having issue with the badges not being display on the home page
Images:
Code:
PHP:
<?php
$badges = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$_SESSION['user']['id']."' ORDER BY id DESC");
if(mysql_num_rows($badges) < 7) {
echo 'You have no badges';
}
while($badge = mysql_fetch_assoc($badges)) {
echo '<div class="hastip badge" title="'.$badge['badge_id'].'">
<img class="hastip" src="images/'.$badge['badge_id'].'.gif" title="'.$badge['badge_id'].'"/>
</div>';
}
?>