Mysqli prepared statement (SQL injection prevention)

前端 未结 2 607
野趣味
野趣味 2021-01-06 11:49

after stopping the use of deprecated mysql_* functions, I switched to mysqli. But then, I noticed that non-prepared statements are non-secure against SQL injection. Then, I

2条回答
  •  囚心锁ツ
    2021-01-06 12:20

    Take a look at this post:

    Are PDO prepared statements sufficient to prevent SQL injection?

    It's using PDO instead of MySQLi, which is solving the same problem by creating prepared statements.

    Sorry for not answering your question, but just wanted to provide a resource for you to consider.

提交回复
热议问题