When PHP fetches data from the database, IE8 can get the data, Chrome, FF and other browsers can not get the data, how to handle

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.