discuz 论坛附件显示,我想去除 被删除的用户,被删帖子的,和禁言的用户,的附件不要显示! sql 要怎么写?高手指教!$query = $db->query("SELECT a.*, p.fid, p.author, t.tid, t.subject, f.name AS fname
FROM {$tablepre}attachments a, {$tablepre}posts p, {$tablepre}threads t, {$tablepre}forums f
WHERE t.tid=a.tid AND f.fid=p.fid AND t.displayorder>='0' AND p.invisible='0' AND a.isimage ='0' AND $sql $orderadd LIMIT $start_limit, $memberperpage");
FROM {$tablepre}attachments a, {$tablepre}posts p, {$tablepre}threads t, {$tablepre}forums f
WHERE t.tid=a.tid AND f.fid=p.fid AND t.displayorder>='0' AND p.invisible='0' AND a.isimage ='0' AND $sql $orderadd LIMIT $start_limit, $memberperpage");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货