Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function delete()
- {
- if (!isset($_POST)) {
- show_404();
- }
- $id = intval($_POST['id']);
- // $jumlah = intval(addslashes($_POST['jumlah']));
- if ($this->penarikan_m->delete($id)) {
- echo json_encode(array('ok' => true, 'msg' => '<div class="text-green">.<i class="fa fa-check"></i> Data berhasil dihapus </div>'));
- } else {
- echo json_encode(array('ok' => false, 'msg' => '<div class="text-red"><i class="fa fa-ban"></i> Maaf, Data gagal dihapus </div>'));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment