查询条件怎么不起作用? 解决了

浏览:485 发布日期:2016/05/21 分类:求助交流 关键字: 查询
if (session('team') == 1){
$map['username'] = session('username');
//$map['shenpi'] < 2;
$map['shenpi'] = array('neq',3);
}
$news_list = $News->where($map)->order('id desc')->select();

我 shenpi 字段中有条件 1、2、3 ,我现在想查询1和2 的数据,我用过 !=3 h和 <3 怎么不起作用,还是全部出来了?
最佳答案
评论( 相关
后面还有条评论,点击查看>>