Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //model
- function remove_checked_indonesia() {
- $action = $this->input->post('hapus');
- if ($action) {
- $delete = $this->input->post('item');
- for ($i=0; $i < count($delete) ; $i++) {
- $this->db->where('id', $delete[$i]);
- $this->db->delete('tabel_indonesia');
- }
- }
- }
- //controller
- function delete_multiple()
- {
- $this->indonesia_model->remove_checked_indonesia();
- redirect('admin/indonesia/index');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement