Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HELP]How to display avatar
11-01-2015, 11:57 PM (This post was last modified: 11-02-2015 01:33 AM by xYzie.)
Post: #1
[HELP]How to display avatar
$do = mysql_query("SELECT id, shout, shouter, time, touid FROM shouts ORDER BY time DESC LIMIT 5");

if(mysql_num_rows($do)<1){

echo 'Nothing to display';

}else{
while($did=mysql_fetch_array($do))
{

if(empty($did['avatar']))
{
echo '<img src="avatarz/"nophoto.jpg" class="avatar" width="35" height="35" alt="*"/>
<a href="profile.php?w='.getnick($did["shouter"]).'">'.getnick($did["shouter"]).'</a><br>';

}else
{
echo '<img src="avatarz/"'.$did['avatar'].'" width="35" height="35" alt="avatar"/>
<a href="profile.php?w='.getnick($did["shouter"]).'">'.getnick($did["shouter"]).'</a>'.$did['avatar'].' <br>';
}
////////////////////////////////////
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)