|
帝国cms灵动标签随机调取文章
注意自己的数据库表:
- [e:loop={"select * from {$dbtbpre}ecms_sitenav order by rand() desc limit 6",20,24,0}]
- <div class="col-12 col-md-6 col-lg-4">
- <div class="ho-hotsitenav">
- <em><a href="<?=$bqsr['titleurl']?>" rel="nofollow"><img src="<?=$bqr[titlepic]?>" class="img-fluid" alt="<?=$bqr['title']?>"></a></em>
- <span>
- <strong><a href="<?=$bqsr['titleurl']?>" rel="nofollow"><?=$bqr['title']?></a></strong>
- <p><?=$bqr['smalltext']?></p>
- </span>
- </div>
- </div>
- [/e:loop]
复制代码 {$dbtbpre}ecms_sitenav 数据表
order by rand() 随机
limit 6 数量
|
上一篇:帝国站教程发布于10秒前 1周前 1个月前 函数下一篇:帝国cms调用列表调用作者的方法
|