关于数据库like操作的防注入问题

浏览:900 发布日期:2015/08/27 分类:求助交流 关键字: 注入
$keywords = '关键词';
$where = array();
$where ['title'] = array (
'LIKE',
"%$keywords%"
);
D('Xxx')->where($where)->select();

想问一下,对于这种关键词like模糊查找,如何有效地避免注入
最佳答案
评论( 相关
后面还有条评论,点击查看>>