Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: user6d450
Added: May 9, 2019 11:43 PM
Views: 15
Tags: no tags
  1. if(isset($_POST['deletenews']))
  2. {
  3.     $newscenter_id = cleanMe($_POST['newscenter_id']);
  4.  
  5.     $data = [
  6.         'newscenter_id'=>$newscenter_id
  7.  
  8.     ];
  9.  
  10.     $response = $m_notices->delete($data);
  11.  
  12.     $response = json_decode($response,true);
  13.  
  14.     sendMessage($response['status'],$response['message'],1);
  15. }