if($userdata['user_avatar']) { echo "<a href='../profile.php?lookup=".$data['user_id']."'>".$data['user_aavtar']."</a>";