multiple delete selection
Posted 24 January 2013 - 18:06 PM
Posted 24 January 2013 - 18:23 PM
Posted 24 January 2013 - 18:28 PM
Don't You get this: [attachment=447:save.jpg]?
Sorry for my English.
Posted 24 January 2013 - 18:32 PM
Posted 24 January 2013 - 18:39 PM
Posted 24 January 2013 - 18:40 PM
Posted 24 January 2013 - 18:42 PM
Posted 24 January 2013 - 18:44 PM
Posted 24 January 2013 - 18:47 PM
Posted 24 January 2013 - 18:52 PM
Posted 02 February 2013 - 20:00 PM
i want using multiple delete...but it doesn't work for dynamic param...
here my code...
function delete_selection($table,$id){
$id_array = array();
$selection = $this->input->post("selection", TRUE);
$id_array = explode("|", $selection);
foreach($id_array as $item):
if($item != ''):
//DELETE ROW
$this->db->where($id, $item);
$this->db->delete($table);
endif;
endforeach;
}
just detected error
[color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]
Severity: Warning
Message: Missing argument 1 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]
[b] A PHP Error was encountered[/b]
Severity: Warning
Message: Missing argument 2 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]
[b] A PHP Error was encountered[/b]
Severity: Notice
Message: Undefined variable: id
Filename: controllers/data_master.php
Line Number: 65[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]
[b] A PHP Error was encountered[/b]
Severity: Notice
Message: Undefined variable: table
Filename: controllers/data_master.php
Line Number: 66[/size][/font][/color][color=#4F5155][font='normal Helvetica', Arial, sans-serif][size=3]
[b] A Database Error Occurred[/b]
You must set the database table to be used with your query.
Filename: C:\xampp\htdocs\elearning-hasan\system\database\DB_active_rec.php
Line Number: 1531[/size][/font][/color]
Posted 02 February 2013 - 20:01 PM
function ebook(){
$crud = new grocery_CRUD();
$crud->set_subject('Ebook');
$crud->set_table('ebook');
$crud->set_relation('idMapel','mapel','nama');
$crud->display_as('idMapel','Mapel');
$this->delete_selection('ebook','idEbook');
$crud->set_rules('nama','required');
$crud->set_rules('file','required');
$crud->set_field_upload('file','assets/uploads/files/');
$output = $crud->render();
$this->_example_output($output);
}
Posted 07 October 2013 - 11:14 AM
Hi,
I need help!
checkbox Working fine for me, but i need to hide/remove from Other List Pages. Its show on unwanted palces.
an asking like unset_edits(),delete and add(), like this .
Im Very New to This Please help!
I have Used list.php file
Thanks
Posted 15 January 2015 - 09:24 AM
Hello,
I've implemented multiple choice for delete solution from this topic but in my case it only shows checkboxes but it doesn't delete anything from my table.
Why delete function not working?
I've attached files from my first project in CI + groceryCrud.
Please help me to solve this case.
Posted 11 December 2017 - 06:30 AM
Hiii any one there can help me out to delete multiple users