hi masters, i have a table with fiedds
officeCode | name | action (Bolean 0/1)
and i create an
$crud->add_action('Send', '', 'examples/sendrows', 'ui-icon-plus');
function sendrows($id) {
$this->db->where('officeCode',$id);
$rs = $this->db->get('offices')->row_array();
$data['action'] = '1';
$this->db->update('offices',$data);
redirect('examples/offices_management');
}
how can i update only a selected row when i click the Send button on my GC list..
on my code above when i click Send it will update all my action field data from offices.. all i want is to update only the selected row.