Home >Database >Mysql Tutorial >mysql-php verifies whether the username and password in the database are correct
mysqlphp
Please help me look at this code. It is logically correct. However, no matter whether you enter the correct user name and password or wrong ones, the login failure will be displayed.
This is the code in the picture above. Where is the master?
Echo the sql statement and see if you know it
Damn it, how did you write the login sql? This way of writing is easy to inject. Is your password stored in clear text? ? If the password is correct, try removing the single quotes