<?php
class Checkuser extends CI_Model{
function __construct()
{
parent::__construct();
}
function check(){
$username = $this->input->post('username',TRUE);
$password = $this->input->post('password',TRUE);
$query = $this->db->query("select * from user wher username=$username and userpass=$password");
return $query->num_rows();
}
}
?>