WHERE news_name='".$userdata['user_id']."' ir if($data['news_name'] == $userdata['user_id']) { ... } else { echo "atsipisk ūbage"; }