Home > Backend Development > PHP Tutorial > 一下程序原本可以登录,为啥小弟我加了自动登录部分(前面1-15行),系统检测不到用户资料后不显示登录界面出来,请帮忙看看,谢谢了

一下程序原本可以登录,为啥小弟我加了自动登录部分(前面1-15行),系统检测不到用户资料后不显示登录界面出来,请帮忙看看,谢谢了

WBOY
Release: 2016-06-13 12:48:17
Original
666 people have browsed it

一下程序原本可以登录,为啥我加了自动登录部分(前面1-15行),系统检测不到用户资料后不显示登录界面出来,请帮忙看看,多谢了
include ('connect.php');
include ('loginchg.php');
//在登录前,先判断是否已经选择自动登录
$query="select * from netoa.users where Urname='{$_session['Username']}' and urPassword='{$_session['Password']}'";
// oci_free_statement($stmt);
$stmt=oci_parse($conn,$query);
$result= oci_execute($stmt);
if ($ruselt)
{
//如果session会话变量名与密码匹配,则自动登录
header('Location: http://localhost/index.php');
exit;
}
?>




用户登陆



          <script>document.location.href="index.php";</script>






                
        


      
        
        



















 系统 
 一下程序原本可以登录,为啥小弟我加了自动登录部分(前面1-15行),系统检测不到用户资料后不显示登录界面出来,请帮忙看看,谢谢了

部门      

Copyright © 2012      

 
      
        





Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template