如何使用$blockedIds数组排除指定的id
$result = \Phpcmf\Service::M()->db->table('1_news')
->whereNotIn('id', $blockedIds) // 使用$blockedIds数组排除指定的id
->get()
->getResultArray();如何使用$blockedIds数组排除指定的id?
是whereNotIn吗
->whereNotIn('id', $blockedIds)
->where('id not in ('.(is_array($blockedIds) ? implode(',', $blockedIds) : 0) .')if(is_array($tiddata)){ $tid =$tid; } else { $tid =0; }->whereNotIn('id', $tid)