Edit file File name : Search.php Content :<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Search extends CI_Controller{ public function properties(){ $location=$this->input->post('location'); $type=$this->input->post('type'); $budget=$this->input->post('budget'); $b=explode(" ",$budget); // print_r($b); // exit; $data['budget']=$b[2]; $this->load->model('Core_model'); $this->load->model('Properties_model'); $data['type']=$type; $data['types']=$this->Core_model->get_types(); $data['locations']=$this->Core_model->get_locations(); $data['props']=$this->Properties_model->get_searched_property($location,$type,$budget); // print_r($data); // exit; $this->load->view('header'); $this->load->view('all_properties',$data); $this->load->view('footer'); } } ?> Save