I have a search engine that filters by a variable but I can not find the way to perform the search but I do it with 2 variables at the same time.
This is my method that I use to filter by a single field "name_event" of the database "event", I need to filter at the same time for another field "type of event".
function mostrar($valor){
$this->db->like("nombre_evento",$valor);
$consulta = $this->db->get("evento");
return $consulta->result();
}