function get_one($where = array(),$select='*'){ $this->db->select($select); if($where){ $this->db->where($where); } $this->db->limit(1); $query = $this->db->get('ych_sendreward'); return $query->row_array(); }
function get_one($where = array(),$select='*'){ $this->db->select($select); if($where){ $this->db->where($where); } $this->db->limit(1); $query = $this->db->get('ych_sendreward'); return $query->row_array(); }