Questions about the administrator of the library management system verification

Source: Internet
Author: User
Concerning the question of the administrator of the library management system verification, the younger brother beginner PHP has a set of source code about the library management system in the research book. I installed the wamp5 integrated environment. I put the database under the DATA folder of MYSQL. after other configurations are completed, login is entered. when the account and password on the php interface are correct, the system keeps prompting that the account is incorrect. sorry, please help me paste the checklog code: & lt ;? Phps questions about the administrator of the library management system verification
I installed the wamp5 integrated environment for the source code of the library management system on the research book of PHP. I put the database under the MYSQL DATA folder, and other configurations are completed. that is, login. when the account and password on the php interface are correct, the system keeps prompting that the account is incorrect. sorry, please help me paste the checklog code:

Session_start ();
$ A_name = $ _ POST [name]; // user name for receiving form submissions
$ A_pwd = $ _ POST [pwd]; // The password for receiving form submissions

Class chkinput {// define a class
Var $ name;
Var $ pwd;

Function chkinput ($ x, $ y ){
$ This-> name = $ x;
$ This-> pwd = $ y;
}

Function checkinput (){
Include ("conn/conn. php"); // connect to the data source
$ SQL = mysql_query ("select * from tb_manager where name = '". $ this-> name. "'& pwd = '". $ this-> pwd. "'");
$ Info = mysql_fetch_array ($ SQL); // Retrieve the administrator name and password
If ($ info = false) {// if the administrator name or password is incorrect, a prompt is displayed.
Echo"

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.