Create a search bar with multiple columns in codeigniter
Controller: public function search_products_auto(){ $this->load->helper(array('form', 'url','common')); $this->load->library(array('session','pagination')); $this->load->model('homemodel','',TRUE); $this->homemodel->search_products_auto(); } public function search($subcategory=''){ $this->load->helper(array('form', 'url','common')); $this->load->library(array('session','pagination')); $this->load->model('homemodel','',TRUE); $search_name=$this->input->post("title"); // first get search character $data['records']=$this->homemodel->search($search_name,$_GET); // SearchModel is the model class na
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.