

multiple delete selection
#21
Posted 24 January 2013 - 06:06 PM
#22
Posted 24 January 2013 - 06:23 PM
#24
Posted 24 January 2013 - 06:32 PM
#25
Posted 24 January 2013 - 06:39 PM
#26
Posted 24 January 2013 - 06:40 PM
#27
Posted 24 January 2013 - 06:42 PM
#28
Posted 24 January 2013 - 06:44 PM
#29
Posted 24 January 2013 - 06:47 PM
#30
Posted 24 January 2013 - 06:52 PM
#31
Posted 02 February 2013 - 08: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
Severity: Warning
Message: Missing argument 1 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57
A PHP Error was encountered
Severity: Warning
Message: Missing argument 2 for Data_master::delete_selection()
Filename: controllers/data_master.php
Line Number: 57
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: id
Filename: controllers/data_master.php
Line Number: 65
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: table
Filename: controllers/data_master.php
Line Number: 66
A Database Error Occurred
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
#32
Posted 02 February 2013 - 08: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);
}
#33
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
Attached Files
#34
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.
Attached Files
#35
Posted 11 December 2017 - 06:30 AM
Hiii any one there can help me out to delete multiple users
Also tagged with one or more of these keywords: checkbox, multiple delete, refresh
Support →
I have a question →
How to grocery-crud grid reload without refreshing pageStarted by patelharsh371, 12 Jun 2016 ![]() |
|
![]() |
||
Support →
I have a question →
button to select all the checkboxesStarted by paisa, 27 Jul 2015 ![]() |
|
![]() |
||
Support →
I have a question →
how to using ajax to refresh the column that values is changing every minuteStarted by ahmed122, 10 Dec 2014 ![]() |
|
![]() |
||
Support →
I have a question →
Showing progress in popup window and refreshing page once it's doneStarted by Nitin Thokare, 05 Jun 2014 ![]() |
|
![]() |
||
Support →
I have a question →
Caching or refresh issueStarted by Rensweb, 14 May 2014 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users