帝国cms使用sql调用随机tags标签
作者:互联网
调用代码:
[e:loop={'select * from phome_enewstags order by rand() limit 1',32,24,0}] <li><a href="/zt/<?=$bqr['tagid']?>/"><?=$bqr['tagname']?></a></li> [/e:loop]
伪静态
rewrite ^(.*)/zt/(.+?)$ $1/e/tags/?tagid=$2;
标签:rand,调用,tags,phome,rewrite,sql,cms,loop 来源: https://www.cnblogs.com/secsafe/p/14754094.html