Code:
$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\"/> "; }
Comment