[CI]登录验证
<?phpclass Admin_model extends CI_Model{function verify_users($email, $password){$q = $this->db->where('email', $email)->where('password', sha1($password))->limit(1)->get('users');if($q->num_rows > 0){return $q->row();}return false;}}
[/list]