没办法,自己乱模,好像还可以,只是不知道为什么第一行有空行,请看演示:
http://www.fengshui-all-in-one.com/fs123/
- $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 IN (7) AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 20");
复制代码
- $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 IN (4,5,220) AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 20");
复制代码
- $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 (4,5,7,220) AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 20");
复制代码 |