?
Current Path : /home1/savoy/public_html/savoyeducation.com/application/models/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyeducation.com/application/models/Main_model-old.php |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Main_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function program_listing(){ $this->db->select(''); $this->db->from('Programs'); $this->db->order_by('id','desc'); $result = $this->db->get(); return $result->result_array(); } public function announcement_listing(){ $this->db->select(''); $this->db->from('announcements'); $this->db->order_by('id','desc'); $result = $this->db->get(); return $result->result_array(); } public function aboutuspage(){ $this->db->select(''); $this->db->from('pages'); $this->db->where('id',1); $result = $this->db->get(); return $result->result_array(); } public function announcement_listing_more($id){ $this->db->select(); $this->db->from('announcements'); $this->db->where('id',$id); $result = $this->db->get(); return $result->result_array(); } public function fourpage(){ $this->db->select(''); $this->db->from('Programs'); $this->db->where('id',1); $result = $this->db->get(); return $result->result_array(); } public function fourthgallery(){ $this->db->select(''); $this->db->from('program_gallery'); $this->db->where('program_id',1); $result = $this->db->get(); return $result->result_array(); } public function threepage(){ $this->db->select(''); $this->db->from('Programs'); $this->db->where('id',2); $result = $this->db->get(); return $result->result_array(); } public function thirdgallery(){ $this->db->select(''); $this->db->from('program_gallery'); $this->db->where('program_id',2); $result = $this->db->get(); return $result->result_array(); } public function twopage(){ $this->db->select(''); $this->db->from('Programs'); $this->db->where('id',3); $result = $this->db->get(); return $result->result_array(); } public function twogallery(){ $this->db->select(''); $this->db->from('program_gallery'); $this->db->where('program_id',3); $result = $this->db->get(); return $result->result_array(); } public function onepage(){ $this->db->select(''); $this->db->from('Programs'); $this->db->where('id',4); $result = $this->db->get(); return $result->result_array(); } public function onegallery(){ $this->db->select(''); $this->db->from('program_gallery'); $this->db->where('program_id',4); $result = $this->db->get(); return $result->result_array(); } public function contact(){ $this->db->select(''); $this->db->from('contactus'); $this->db->where('id',1); $result = $this->db->get(); return $result->result_array(); } }