Quote:how can i save the Company_code and company_name in Maint_company table and how can i get the company_id to be put in the sec_companyaccess table???
am thinking if i should put it here:
Yes, return $this->db->insert_id() (like you are doing) will return the company_id