Search system with codeigniter

Asked

Viewed 928 times

-3

Could someone tell me a good tutorial, or a way to make a search system with codeigniter? I thank you already.

  • thanks for the opinion, I’m new here, thank you very much, but this part was concluded, thank you.

1 answer

2

It’s quite 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)
    );


    }
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.