Login failed in my code after inserting proper login details (i.e username and password), code in php and jquery

后端 未结 2 1313
小鲜肉
小鲜肉 2021-01-28 17:59

I have following code (php and jquery) for Login for Student and Teacher (using same form for both access). In my system the admin can create Student and Teacher. Once created,

2条回答
  •  没有蜡笔的小新
    2021-01-28 18:33

    It is critical to use prepared statements when dealing directly with user supplied data from a webpage like username and password.

    Your present code is open to SQL injection. Use mysqli with prepared statements, or PDO with prepared statements.

    From Fred: PHP Not Inserting Content in mySQL Database: Text, Images, Anything

提交回复
热议问题