I have a problem using two similar operators and where together:
$this->db->select('something');
$this->db->where('WHERE',$var);
$this->db->where_in('WHEREIN', $var);
$this->db->like('LIKE1',$query);
$this->db->or_like('LIKE2',$query);
$query = $this->db->get('table');
My request is to choose LIKE1either LIKE2where WHEREand WHEREINtrue.
If I use or_like, WHEREthe get the operator ortoo,
If I use only like, it becomes an expressionlike AND like
Any solution?
source
share