| 
 | 
 
 
发表于 2011-8-20 16:41:19
|
显示全部楼层
 
 
 
<?php 
class Admin_user_model extends CI_Model{ 
         
        function __construct(){ 
                parent::CI_Model(); 
        } 
         
        function check(){ 
                $this->db->where('username',$this->input->post('username')); 
                $this->db->where('password', $this->input->post('password')); 
                 
         
                 
                $q = $this->db->get('user'); 
                 
                echo print_r($q); 
                 
                if($q->num_rows() > 0){ 
                        echo 'OKOKOKO!'; 
                         
                }else { 
                        echo '注册去'; 
                } 
        } 
} 
 
 
我写了构造函数之后,页面访问出问题了,变成空白页面了。 |   
 
 
 
 |