Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') or exit('No direct script access allowed');
- class ModelAuth extends CI_Model
- {
- public function cek_login()
- {
- $username = set_value('username');
- $password = set_value('password');
- $result = $this->db->where('username',$username)
- ->where('password',$password)
- ->limit(1)
- ->get('tb_user');
- if ($result->num_rows() > 0) {
- return $result->row();
- } else {
- return array();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement