You can use $lastInsertID = $this->db->insert_id(); after insert query.

Suggest An Answer

No suggestions Available!