PHP IE8 can get data when reading the database, Chrome, 360, FF and other browsers can't get the data

Source: Internet
Author: User
Tags md5 encryption php mysql
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.

  • Related Article

    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.