码迷,mamicode.com
首页 > 其他好文 > 详细

think where 同字段 多级筛选写法

时间:2020-07-06 19:35:47      阅读:57      评论:0      收藏:0      [点我收藏+]

标签:think   code   array   desc   pre   word   like   where   new   

$where[‘title‘] = array([‘like‘, "%bh%"],[‘like‘,"%nk%",‘or‘);
$data=M(‘news‘)
        ->field(‘id,title,keyword‘)
        ->where($where)
        ->order(‘add_time DESC‘)
        ->select();

think where 同字段 多级筛选写法

标签:think   code   array   desc   pre   word   like   where   new   

原文地址:https://www.cnblogs.com/makalochen/p/13256440.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!