帝国cms选取两个表的集合实现按某字段排序
代码如下:<div class="TitleBox"><a href="/" target="_blank">热门作品</a></div>
<div class="BoxBlockMain PicBlock02">
<ul>ecms_test` Union All select title,titleurl,onclick,titlepic from `[!db.pre!]ecms_gamepic` order by onclick desc limit 6',6,24,1}]
<li class="iHover">
<span class="pic"><a href="<?=$bqsr?>" target="_blank" title="<?=$bqr?>"><img src="<?=$bqr?>" class="_ImagesReSize" alt="<?=$bqr?>" /></a></span>
<span class="title"><a href="<?=$bqsr?>" target="_blank" title="<?=$bqr?>"><?=esub($bqr,12)?></a></span>
</li>
</ul>
</div>
文档来源:脚本之家https://www.jb51.net/cms/129114.html
页:
[1]