if ($userdata['user_avatar'] != "") { echo "<img border='0' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'>\n"; } else { echo "<img border='0' src='".BASEDIR."images/avatars/noavatar.png'>\n"; }