my question is the following I have a problem what happens that I try to pass two ways of obtaining values through like both by description and by codbar. the code is as follows
this is the code that seeks me by description
$this->db->select('*');
$this->db->limit(10);
$this->db->like('descripcion', $q);
$query = $this->db->get('produtos');
this is the code that seeks me for codbar
$this->db->select('*');
$this->db->limit(10);
$this->db->like('codbar', $q);
$query = $this->db->get('produtos');
So I try to put both but do not look for me for both, just for coding
$this->db->select('*');
$this->db->limit(10);
$this->db->like('descripcion | codbar', $q);
$query = $this->db->get('produtos');
I appreciate your help, thank you.