recon/application/models/Tmc_model.php
suseendhiran17 bc4eb9be01 suseendhiran
2023-03-25 15:31:28 +05:30

22 lines
493 B
PHP

<?php
class Tmc_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);
}
}