Maison  >  Article  >  Tutoriel CMS  >  Sharing Empire cms sélectionne une collection de deux tables à trier selon un certain champ

Sharing Empire cms sélectionne une collection de deux tables à trier selon un certain champ

silencement
silencementavant
2019-12-03 13:16:352278parcourir

Sharing Empire cms sélectionne une collection de deux tables à trier selon un certain champ

Empire cms sélectionne une collection de deux tables à trier selon un certain champ

Le code est le suivant :

<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>

Étude recommandée "Tutoriel Empire cms

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration:
Cet article est reproduit dans:. en cas de violation, veuillez contacter admin@php.cn Supprimer