How to get the last inserted record Id on Codeigniter?

The Codeigniter is the Lightweight fast and object-oriented PHP Framework. Sometimes we need the last inserted record Id for inserting the related data into another table. When we are working on product module at that time we insert product data to the database and also we need to insert product-related data like product attribute insert to the database we need the product id for stored attribute data.

Continue reading How to get the last inserted record Id on Codeigniter?