codeigniter where array code example
Example 1: where condition in array in codeigniter
$multiClause = array('id' => $ids, 'name' => $name, 'status' => 1 );
$this->db->where($multiClause);
Example 2: cideigniter orLike()
$this->db->like('title', 'match'); $this->db->or_like('body', $match);
Example 3: where group codeigniter
$this->db->select('*')->from('my_table')
->group_start()
->where('a', 'a')
->or_group_start()
->where('b', 'b')
->where('c', 'c')
->group_end()
->group_end()
->where('d', 'd')
->get();