McGansWebsite/application/models/Faculty.php
Sasikala a79011514c 20230105
initial update
2023-01-05 17:49:39 +05:30

32 lines
632 B
PHP

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