+ -
当前位置:首页 → 问答吧 → 这个语句要怎么写

这个语句要怎么写

时间:2011-08-09

来源:互联网

protected function Types(){
     $User=M('User');
     if ($Tips->where('uid='.$this->uid().' && Level>=1 || Point>0 || Integral>100')->count()){
          return TRUE;
     }else{
          return FALSE;
     }
}


条件是 uid='1'   指写用户ID   下面的符合一条就通过 Level>=1 || Point>0 || Integral>100'

作者: uroot   发布时间: 2011-08-09

用括号括起来啊where('uid='.$this->uid().' && (Level>=1 || Point>0 || Integral>100)')

作者: yangweijie   发布时间: 2011-08-09