MINI
C:
/
xampp
/
htdocs
/
APLIKASI SISTEM INFORMASI RESTORAN
/
restoran
/
application
/
models
/
Upload File:
files >> C:/xampp/htdocs/APLIKASI SISTEM INFORMASI RESTORAN/restoran/application/models/Auth_model.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Auth_model extends CI_Model { function loginPegawai($email, $password) { $this->db->select('*'); $this->db->from('pegawai'); $this->db->where('email', $email); $this->db->where('password', $password); $this->db->limit(1); $query = $this->db->get(); if ($query->num_rows() == 1) { return $query->result(); } else { return false; } } } /* End of file Auth_model.php */
Copyright ©2021 || Defacer Indonesia