What characters are NOT escaped with a mysqli prepared statement?

前端 未结 4 1816
独厮守ぢ
独厮守ぢ 2021-01-20 00:47

I\'m trying to harden some of my PHP code and use mysqli prepared statements to better validate user input and prevent injection attacks.

I switched away from mysql

4条回答
  •  遥遥无期
    2021-01-20 01:27

    It is one who is using LIKE to match a username to blame, not escaping function.

    And, just for your info: native prepared statements do not escape anything.

提交回复
热议问题