比如招聘和求职,企业会员只出招聘,普通会员只出求职

<?php

$modsql=$empire->query("select mid,qmname from {$dbtbpre}enewsmod where usemod=0 and showmod=0 and qenter<>'' order by myorder,mid");

while($modr=$empire->fetch($modsql))

{

if(getcvar('mlgroupid')==个人会员组ID&&$modr[mid]==招聘系统模型ID)

{

continue;

}

if(getcvar('mlgroupid')==企业会员组ID&&$modr[mid]==求职系统模型ID)

{

continue;

}

?>

<li><img src="/skin/member/images/list.gif" /><a href="/e/DoInfo/ListInfo.php?mid=<?=$modr[mid]?>"><?=$modr[qmname]?></a><em><a href="/e/DoInfo/ChangeClass.php?mid=<?=$modr[mid]?>">发布</a></em></li>

<?

}

?>

可以同时能写多个会员组id

if((getcvar('mlgroupid')==企业会员组ID||getcvar('mlgroupid')==会员组ID2)&&$modr[mid]==求职系统模型ID