admin管理员组

文章数量:1667288

2019独角兽企业重金招聘Python工程师标准>>>

tp3.2.3多次数组条件会合并,字符串条件只支持一次,就是说字符串只能出现一次
//获取is_del为0的数据
$sel  = M('bpapply')->where ("bp_id in($str) and is_del=0")->select();
//取出符合在字符串$str中,并且is_del为0的数据,$str必须是字符串
$sel  = M('bpapply')->where (array("bp_id in($str)", 'is_del'=>1,'is_status'=>1))->select();
//取出is_status为0的数据
$sel  = M('bpapply')->where('is_status=0')->select();
//如果是多个条件,使用
$sel  = M('bpapply')->where (array("bp_id in($str)", 'is_status'=>0))->where(array('is_del'=>1))->select();

 

转载于:https://my.oschina/botkenni/blog/822358

本文标签: 多条