where condition in array in codeigniter
$this->db->where(['name' => 'John', 'age' => 25]);
- $this->db: Refers to the database class in CodeIgniter.
- where([]): Method used to specify the WHERE condition in the query.
- 'name' and 'age': Column names to filter the records.
- 'John' and 25: Values to compare with the respective column names.