This post was last edited by vic90 on 2013-06-06 16:55:13
browser PHP mysql
This is my PHP code, I want to get the data table Z_register content, with IE browser can get to, but with Chrome, 360, FF and other browsers are not access to content, with
Chrome, 360, 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
');}
Reply to discussion (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
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 caused the query not to result I found the problem, the password has not passed. However, there is still a problem, if I use MD5 encryption, that is $_PASSWORD=MD5 ($_post["password"), found that chrome can login, but IE failed, I output a bit through the MD5 encryption password, chrome and IE different , to find out how to solve
Your IE is poisoned.
Your IE poisoned it as if the value of the password didn't pass through.