Delete multiple rows using checkbox - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Delete multiple rows using checkbox (/showthread.php?tid=69005) |
Delete multiple rows using checkbox - eleumas - 09-26-2017 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){ RE: Delete multiple rows using checkbox - rtenny - 09-27-2017 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); } RE: Delete multiple rows using checkbox - hdsavani - 07-14-2018 Here is a full script for delete multiple records using checkbox in Codeigniter application, You can follow: https://itsolutionstuff.com/post/how-to-delete-multiple-rows-using-checkbox-in-codeigniter-3example.html I hope it can help you... |