Search system with codeigniter [closed]

-3

Could someone tell me a good tutorial, or a way to do a search engine with codeigniter? Thanks in advance.

    
asked by anonymous 19.10.2015 / 12:56

1 answer

2

It's pretty simple

  $busca = $this->input->post('busca'); 

  $query_busca = $this->db->query("SELECT * FROM tabela WHERE coluna LIKE '%".$busca."%' ")->result();


  $data=[
        "resultados" => $query_busca,
 ias
          ];

     $data_content = array(
        'content' => $this->load->view('pasta/pagina', $data, true)
    );


    }
}
    
19.10.2015 / 15:13