Home  >  Article  >  CMS Tutorial  >  Sharing Empire cms selects a collection of two tables to sort by a certain field

Sharing Empire cms selects a collection of two tables to sort by a certain field

silencement
silencementforward
2019-12-03 13:16:352316browse

Sharing Empire cms selects a collection of two tables to sort by a certain field

Empire cms selects a set of two tables to sort by a certain field

The code is as follows:

<div class="TitleBox"><a href="/" target="_blank">热门作品</a></div>
<div class="BoxBlockMain PicBlock02">
<ul>[e:loop={&#39;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&#39;,6,24,1}]
<li class="iHover">
<span class="pic"><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><img style="
max-width:
120px;max-height:86px;" src="<?=$bqr[titlepic]?>" class="_ImagesReSize" alt="<?=$bqr[title]?>" /></a></span>
<span class="title"><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><?=esub($bqr[title],
12)
?></a></span>
</li>[/e:loop]
</ul>
</div>

Recommended study《 Empire cms tutorial

The above is the detailed content of Sharing Empire cms selects a collection of two tables to sort by a certain field. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete