echo $this->db->last_query(); // <------- insert this in your model for debugging. It will output the last query ran (your insert statement in this case)
return $this->db->insert_id();
}
[/quote]
i have tried your script and i saw in my console this message:
Quote:INSERT INTO `erp_maint_company` (`company_code`, `company_name`) VALUES ('hfghrfh', 'hfghfgh'){"item":35}
it means that it was added right?? but i wander why is it not posting in my detail grid.. that confuses me a lot.