All I see is or_like()
. Is it possible to query two different \'likes\' and both are mandatory?
return $this->db
->select(\'product_key.cont
You can pass an array to $this->db->like()
which will produce multiple AND
s:
$array = array('product_key.client_name' => $filter_name, 'product_key.status' => $filter_status);
$this->db->like($array);
I just added a condition to show an alert if either or both are missing so it won't output anything. Thanks for the help guys! :)