recon/application/models/Admin_model.php
2023-02-27 18:53:14 +05:30

22 lines
516 B
PHP

<?php
class Admin_model extends CI_Model {
function __construct() {
parent::__construct();
}
function get_user($con = null){
if($con)
$this->db->where($con);
return $this->db->get('users');
}
function get_corp($con=null,$c_id = null,$is_active = null){
if($c_id)
$con['c_id'] = $c_id;
if($is_active)
$con['c_isactive'] = 1;
return $this->db->get_where('corporates',$con);
}
}