HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/nt/application/models/admin/Msis.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Msis extends CI_Model {

    public function __construct() {
        parent::__construct();

    }

    public function get_sis($where = array()){
        $this->db->select('pdet.*, p.project_name');
        $this->db->from('project_det pdet');
		$this->db->join('project p', 'pdet.project_id = p.project_id', 'LEFT');
        if(!empty($where)){
            $this->db->where($where);
        }
		$this->db->order_by('pdet.project_det_id','DESC');
        $query=$this->db->get();
		//echo $this->db->last_query();die;
        return $query->result_array();
    }
	
	public function get_project_detail($where = array()){
        $this->db->select('pdet.*, p.project_name, c.category_name');
        $this->db->from('project_det pdet');
		$this->db->join('project p', 'pdet.project_id = p.project_id', 'LEFT');
		$this->db->join('category c', 'pdet.category_id = c.category_id', 'LEFT');
        if(!empty($where)){
            $this->db->where($where);
        }
        $query=$this->db->get();
		//echo $this->db->last_query();die;
        return $query->row_array();
    }
	

}