Home > Backend Development > PHP Tutorial > php在读取数据库获取数据时,ie8可以获取到数据,chrome、360、ff等浏览器不能获取数据,该如何处理

php在读取数据库获取数据时,ie8可以获取到数据,chrome、360、ff等浏览器不能获取数据,该如何处理

WBOY
Release: 2016-06-13 12:47:16
Original
1060 people have browsed it

php在读取数据库获取数据时,ie8可以获取到数据,chrome、360、ff等浏览器不能获取数据

本帖最后由 vic90 于 2013-06-06 16:55:13 编辑 这是我的php的代码,我要获取数据表z_register的内容,用ie浏览器可以获取的到,但是用chrome、360、FF等浏览器都获取不到内容,用
chrome、360、FF等浏览器运行时,运行到mysql_fetch_array一句就弹出了,显示登录失败,应该要如何改啊?
$account=$_POST["account"];<br />
	$password=$_POST["password"];<br />
	$res=mysql_query("select * from z_register where z_account='".$account."' and z_password='".$password."'");<br />
	print_r($res);<br />
	if($result=mysql_fetch_array($res)){<br />
		mysql_query("update z_register set z_login_count = z_login_count+1 where z_account='".$account."'");<br />
		$_SESSION['account']=$account;<br />
		$_SESSION['username']=$result['z_name'].$result['z_title'];<br />
		//$_SESSION['login_count']=$result['z_login_count'];<br />
		refresh_page("./other/list.php");<br />
	}else{<br />
		exit('登录失败!点击此处 <a href="javascript:history.back(-1);">返回</a> 重试<br/>');<br />
	}
Copy after login
浏览器 php mysql
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