Hy, I have a page on my site, with the name of hotels. here is the code of the hotel page.
here is my controller:
function country_holiday(){
$data['hotels']= $this->Travel->holiday();
$this->load->view('hotels', $data);
}
here is my model:
function holiday(){
$this->db->select();
$this->db->from('holidays_hotel_2');
$this->db->order_by('rand()');
$this->db->limit(16);
$query= $this->db->get();
return $query->result_array();
}
I am getting my required data on hotel page and its working fine, I want to include this hotel page into my another page(hotelling program).
I used where i want to placed that hotel in hotelling program page, but it did not show up any detail except the html of hotel page. what should i need to do. Any Idea??