可以用数组,参照以下方式:$data=D("user");$map['user_name']=array('like','%'$_REQUEST['username'].'%');$map['user_status']=array('eq',1);$list=$data->where($map)->select();看明白了吧
你数组是怎么写的?