帝国cms选取两个表的集合实现按某字段排序
发布时间:2016-12-23 来源:查字典编辑
摘要:热门作品[e:loop={'selecttitle,titleurl,onclick,titlepicfrom`[!db.pre!]ecms...
<div><a href="/" target="_blank">热门作品</a></div>
<div>
<ul>[e:loop={'select title,titleurl,onclick,titlepic from `[!db.pre!]ecms_test` Union All select title,titleurl,onclick,titlepic from `[!db.pre!]ecms_gamepic` order by onclick desc limit 6',6,24,1}]
<li>
<span><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><img src="<?=$bqr[titlepic]?>" alt="<?=$bqr[title]?>" /></a></span>
<span><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><?=esub($bqr[title],12)?></a></span>
</li>[/e:loop]
</ul>
</div>