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