PHP IE8 can get data when reading the database, Chrome, FF and other browsers can't get the data
This post was last edited by vic90 on 2013-06-06 16:55:13
This is my PHP code, I want to get the data table Z_register content, with IE browser can get to, but with Chrome, FF and other browsers are not access to content, with
Chrome, FF and other browsers run, run to mysql_fetch_array a sentence pops up, display login failure, how should you change ah?
$account =$_post["Account"];
$password =$_post["Password"];
$res =mysql_query ("select * from Z_register where z_account= '". $account. "' and z_password= '". $password. "'");
Print_r ($res);
if ($result =mysql_fetch_array ($res)) {
mysql_query ("update z_register set z_login_count = z_login_count+1 where z_account= '". $account. "");
$_session[' account ']= $account;
$_session[' username ']= $result [' Z_name ']. $result [' Z_title '];
$_session[' Login_count ']= $result [' Z_login_count '];
Refresh_page ("./other/list.php");
}else{
Exit (' Login failed! Click here to return to retry
');
}
Browser PHP MySQL
Share to:
------Solution--------------------
Not satisfied with the record so the landing failed, as you said IE can be correct, I suspect your IE has a problem.
It's also possible that the coding problem causes the query to be out of results