[eluser]xeroblast[/eluser]
put the var_dump() or print_r() here:
function save_companydetail($details,$id)
{
$this->db->trans_start();
$this->db->insert('maint_company', $details);
$DataId = $this->db->insert_id();
$data['user_id'] = $id;
$data['company_id'] = $DataId;
// print_r($data); // if there are data on this variable.
$this->db->insert('sec_companyaccess', $data);
$this->db->trans_complete();
}
also try to view all variables used if there are entries on it...