McGansWebsite/application/models/Subject_model.php
dotwingssoftware d5a0e0987c 10012023
20230110
2023-01-10 15:11:20 +05:30

22 lines
433 B
PHP

<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Subject_model extends CI_Model {
public function __construct() {
parent::__construct();
}
function subject_list($id)
{
$this->db->select('*');
$this->db->from('subject');
$this->db->where(array('status'=>1,'department'=>$id));
$query = $this->db->get();
//echo $this->db->last_query();exit;
return $query;
}
}