if ($userdata['user_avatar'] != "") { <img border='0' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'> } else { <img border='0' src='".BASEDIR."images/avatars/noav.gif'> }