if ($userdata['user_avatar'] != "") { echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100'>"; } else { echo "<img src='".IMAGES."noavatar.gif' width='100' height='100' >"; }