tp3.2 查询某个字段不为空的数据

官方参考地址
https://www.kancloud.cn/manual/thinkphp/1771

 $b['status'] = 1;
 $b['tiezipicture'] = array('neq','');

  
 $chanye=$shequ_model->where($b)->order('id DESC')->limit(3)->select();  

猜你喜欢

转载自blog.csdn.net/qq_39835505/article/details/95318294