$avlink = getavatar($user);
if ($avlink=="")
{
$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$user."'"));
if($sex[0]=='M')
{
echo "
<img src=\"images/nophotoboy.gif\" alt=\"avatar\"/>
";
}else if($sex[0]=='F')
{
echo "
<img src=\"images/nophotogirl.gif\" alt=\"avatar\"/>
";
}else{
echo "
<img src=\"images/nopic.jpg\" alt=\"avatar\"/>
";
}
}else{
echo "
<img src=\"$avlink\" alt=\"avatar\"/>
";
}
when i add this to my online list it only show the nopic what must i do that it can show the avatar in the members profile i did check with me i have a avatar and it still show nopic icon