[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=友情链接类型ID号 order by 顺序规则 ',20,24,0}]
<a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a>
[/e:loop]
这个是友情链接灵动标签调用规则。
网上流传的,一般的都是按照友情链接ID先后顺序排列,不能变更,具体方法如下:
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lib ',20,24,0}]
<a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a>
[/e:loop]
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by myorder ',20,24,0}]
<a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a>
[/e:loop]