How do I prevent sql injection with php and mysql

前端 未结 4 1975
南旧
南旧 2020-12-20 06:42

I have a form into which the visitor can enter data, and I want to store this data in a mysql database via the $_POST variable. What do I need to prevent sql injection?

4条回答
  •  情话喂你
    2020-12-20 07:23

    Have a read at this, and next time do some searching:

    https://stackoverflow.com/questions/1973/what-is-the-best-way-to-avoid-sql-injection-attacks

提交回复
热议问题