i have a problem on how i put my code on callback_after update
this is my callback on my add_action.
my problem ishow can i put these code on my callback_after_update.. thnx
function copyrows($primary_key)
{
$this->db->where('officeCode',$primary_key);
$rs = $this->db->get('offices')->row_array();
$data['officeCode'] = $rs['officeCode'];
$data['city'] = $rs['city'];
$data['phone'] = $rs['phone'];
$data['addressLine1'] = $rs['addressLine1'];
$data['addressLine2'] = $rs['addressLine2'];
$data['state'] = $rs['state'];
$data['postalCode'] = $rs['postalCode'];
$data['country'] = $rs['country'];
$data['territory'] = $rs['territory'];
$data['checking'] = $rs['checking'];
$this->db->insert('offices1', $data);