Delete multiple rows using checkbox |
Hi, i would like delete multiple rows using checkbox.
Please, someone can help me? Thanks. View: Code: <table class="uk-table uk-table-striped"> PHP Code: public function delete() PHP Code: public function DeleteById($id){
This
$id = $this->input->post('ckbdelete'); return an array of ids. you need to loop through the ids and delete each one. something like this foreach ($id as $i){ $this->guestbook_model->DeleteById($i); }
On the package it said needs Windows 7 or better. So I installed Linux.
Here is a full script for delete multiple records using checkbox in Codeigniter application, You can follow: https://itsolutionstuff.com/post/how-to-...ample.html
I hope it can help you... |
Welcome Guest, Not a member yet? Register Sign In |