Security of mysql database

This question already has an answer here:

  • The definitive guide to form-based website authentication [closed] 12 answers
  • How can I prevent SQL injection in PHP? 28 answers

  • what happens if i enter a username root and put the password like this

    ' or 'x'=='x
    

    you sql statement will be

    SELECT count(id) FROM login WHERE user='root' and pass='' or 'x'=='x'
    
    链接地址: http://www.djcxy.com/p/3724.html

    上一篇: 如何使用mysql进行php http基本认证

    下一篇: mysql数据库的安全性