User inputs, clean and sanitize before sending to db

后端 未结 5 1526
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 11:23

I\'ve searched a lot of the questions here and I found that they either very old or suggesting using prepared statements PDO which I am not

5条回答
  •  无人及你
    2020-12-13 11:51

    Your code looks fine, if you don't want to prepare statements then escaping is the next best thing. And when you echo it should be straightforward, it's only plain text.

提交回复
热议问题