Tag: codeigniter active record

Base Model: Create and Use Base Model in Codeigniter

In this post, We will discuss about base model in Codeigniter. Purpose of uses of Base model is to put

How to get last inserted id using codeigniter active record

Sometime we need last inserted id in the application to insert id to another table to make relations. Suppose we

Fetch records between date range using codeigniter active record

Please find below the code to fetch all records between date range using codeigniter active record.

How to insert multiple array data using codeigniter active record

Below is the example to insert multiple array data using query builder class of codeigniter. By using $this->db->insert_batch() method we can achieve