db_ = $this->load->database('skpv',TRUE); } public function cek_login($table, $where) { return $this->db->get_where($table, $where)->num_rows(); } public function data_login($table, $where) { return $this->db->get_where($table, $where)->row_array(); } public function get_role($table, $where) { $this->db->select('status'); $this->db->from($table); $this->db->where('username',$where); return $this->db->get()->result_array(); } public function get_nama_dosen($nidu) { $this->db_->select('nmdosdgngelar'); $this->db_->from('dosen'); $this->db_->where('nidu', $nidu); return $this->db_->get()->row_array(); } }