Php如何SQL注入保护我的代码 [英] Php how do I SQL injection protect my code

查看:89
本文介绍了Php如何SQL注入保护我的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在php中创建了一个代码,但它不是sql注入保护。

所以我在网上搜索,我找到了很多解决方案,但我明白了。

所以有人可以向我解释请如何sql注射保护请



我尝试过:



i已在网上搜索但我什么都不懂

so i made a code in php but it is not sql injection protected.
so i have searching the web and i found plenty of solutions but i dint understand them.
so is there someone that can explain to me please how to sql injection protect please

What I have tried:

i have searched the web but i did not understand anything

推荐答案

使用准备好的陈述:

PHP:准备好的语句和存储过程 - 手册 [ ^ ]

PHP:准备好的陈述 - 手册 [ ^ ]
Use prepared statements:
PHP: Prepared statements and stored procedures - Manual[^]
PHP: Prepared Statements - Manual[^]


PHP:SQL注入 - 手册 [ ^ ]


这篇关于Php如何SQL注入保护我的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆