- $Model->where("id=%d and username='%s' and xx='%f'",array($id,$username,$xx))->select();
强制转换变量类型,防止sql注入。
%d - double,包含正负号的十进制数(负数、0、正数)
%s - string,字符串
%f - float,浮点数
select();强制转换变量类型,防止sql注入。%d - double,包含正负号的十进制数(负数、0、正数)%s - string,字符串%f - float,浮点数转载于:https://www.cnblog..._thinkphp盲注加固">
赞
踩
强制转换变量类型,防止sql注入。
%d - double,包含正负号的十进制数(负数、0、正数)
%s - string,字符串
%f - float,浮点数
转载于:https://www.cnblogs.com/zjdeblog/p/6163923.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。