Home > CMS Tutorial > Empire CMS > 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
Release: 2019-12-03 13:16:53
forward
2359 people have browsed it

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>
Copy after login

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!

Related labels:
source:www.word666.com/cms
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template