[e:loop={"select id,classid,newspath,filename,groupid,titleurl from [!db.pre!]ecms_".$class_r[$navinfor[classid]]['tbname']." where id<".$navinfor[id]." and classid=".$navinfor[classid]." and checked=1 order by id desc limit 1",1,24,0}]
<?php
$titleurl=sys_ReturnBqTitleLink($bqr);
echo $titleurl;
[/e:loop]
下一篇链接:(把小于号改成大于号)
代码如下:
[e:loop={"select id,classid,newspath,filename,groupid,titleurl from [!db.pre!]ecms_".$class_r[$navinfor[classid]]['tbname']." where id>".$navinfor[id]." and classid=".$navinfor[classid]." and checked=1 order by id desc limit 1",1,24,0}]
<?php
$titleurl=sys_ReturnBqTitleLink($bqr);
echo $titleurl;
[/e:loop]