Home > Backend Development > PHP Tutorial > 关于sql注入解决方法

关于sql注入解决方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:44:43
Original
937 people have browsed it

关于sql注入
我有一个疑问,网站处理一个留言板,通过ajax传给PHP控制器去处理的
$.ajax({
url:'http://www.************?content='+ thisContent + '&username='+ thisUsername +'&phone='+thisPhone+'&callback=?',
type:'GET',
dataType:'jsonp',
success:function(d){
if(d.code==200){


}
});
PHP那边用GET去接数据,接到之后直接传给MYSql数据库,可问题是,聪明点的直接在浏览器地址栏直接输入http://www.************?content='+ thisContent + '&username='+ thisUsername +'&phone='+thisPhone+'&callback=?这样子也可以往数据库里面插入数据了。
如果有人用软件一直通过浏览器里面给你不间断的传数据,那你的MYSql肯定是受不鸟这样的。肯定会垮掉。请问高手们有什么好的解决办法吗???求解答了!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template