PHP login issues

前端 未结 2 838
渐次进展
渐次进展 2021-01-26 10:14

I am creating a login which links to a database, when entering information the login then runs a blank page and does nothing, below is my code:

    include \"con         


        
2条回答
  •  星月不相逢
    2021-01-26 10:42

    You're missing a few ; in your code which is causing the script to crap out and not display anything. (Specifically in the while loop but check elsewhere as well.)

    Edit: You may also want to consider losing that while loop all together and putting the password criteria in the SQL statement for better performance. And like the other poster said, watch out for SQL injection.

提交回复
热议问题