adityairvndn

penarikan - Koperasi Yoisoweb

Mar 17th, 2022
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1.     public function delete()
  2.     {
  3.         if (!isset($_POST)) {
  4.             show_404();
  5.         }
  6.  
  7.         $id = intval($_POST['id']);
  8.         // $jumlah = intval(addslashes($_POST['jumlah']));
  9.         if ($this->penarikan_m->delete($id)) {
  10.             echo json_encode(array('ok' => true, 'msg' => '<div class="text-green">.<i class="fa fa-check"></i> Data berhasil dihapus </div>'));
  11.         } else {
  12.             echo json_encode(array('ok' => false, 'msg' => '<div class="text-red"><i class="fa fa-ban"></i> Maaf, Data gagal dihapus </div>'));
  13.         }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment