$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10");
复制代码
最新主题、回复、热帖的调用都有类似这句,注意看里面的AND f.fid not in (0),括弧里面的数字就是你不想调用版块的fid,填写进去就好了,例如AND f.fid not in (224,15)表示不调用fid是224和15的版块!
此方法仅能在最新帖子这个格里不调用指定板块新发的主题贴
欢迎光临 Naale Money Maker Community (http://naale.biz/)