翻了一下“调用论坛精华帖”的sql语句 发现没有按发布时间顺序调用的
下面我发一个 其实是按帖子id调用的,其实就等于按发布时间调用
SQL语句为
select subject as title,tid as id from 数据库名.表前缀_threads where fid=板块ID and digest >0 order by tid desc limit 调用数量
如果不按板块调用,去掉 where fid=板块ID 即可
万能标签的例子 [ecmsinfo]'select subject as title,tid as id from discuz.cdb_threads where fid=18 and digest >0 order by tid desc limit 10',10,21,0,24,36,0[/ecmsinfo]
24为SQL方式调用
|