|
public function login($user_name) {
$user_name =$this->db->escape($user_name);
$sql ="select USER_ID,STATUS,PASSWORD,LAST_LOGIN_TIME,USER_NAME,NAME from ADM_USER where USER_NAME =$user_name ";
$query =$this->db->query($sql);
if ($query->num_rows()>0) {
foreach ($query->result_array() as $row){
$arr[] =$row;
}
return $arr;
}
}
本地这么写没错,刚刚部署到服务器上就出问题了 |
|