Hades

2016年3月4日

摘要: 推荐使用索引数组或者对象来作为查询条件,因为会更加安全。 一、使用字符串作为查询条件 这是最传统的方式,但是安全性不高,例如: $User = M("User"); // 实例化User对象 $User->where('type=1 AND status=1')->select(); 最后生成的SQ 阅读全文

posted @ 2016-03-04 08:10 Styxlord 阅读(217) 评论(0) 推荐(0) 编辑

Death around us:run desperately!