db2_ = $this->load->database('skpb',TRUE); } public function insert($table, $data) { $insert = $this->db->insert($table, $data); return $insert; } public function cek_mhs($table, $where) { return $this->db->get_where($table, $where)->num_rows(); } public function cek_login($table, $where) { return $this->db2_->get_where($table, $where)->num_rows(); } public function data_login($table, $where) { return $this->db2_->get_where($table, $where)->row_array(); } public function getKelasMKWU() { $this->db->select('id_kelas, nama_kelas'); $this->db->from('mkwu_kelas'); $this->db->order_by('nama_kelas', 'ASC'); $this->db->group_by('id_kelas'); $query = $this->db->get(); return $query->result(); } }