Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function search(){
- if($this->input->post('formSearchSubmit')){
- $this->form_validation->set_rules('formSearchField', 'search', 'trim|required');
- if($this->form_validation->run()){
- $this->db->like('page_title', $this->input->post('formSearchField'));
- $query = $this->db->get('ci_pages');
- foreach ($query->result() as $row){
- echo $row->page_title;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement