Home > Backend Development > PHP Tutorial > 菜鸟求教,这个怎么倒序排序

菜鸟求教,这个怎么倒序排序

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:59:04
Original
822 people have browsed it

<ul class="article_list">								{foreach from=$list item=item}								<li><a href="{$item.url}" title="{$item.title}" style="float:left;">{function name="msubstr" v=$item.title b=0 e=30}</a> <span style="float:right;">{function name="to_date" v=$item.update_time}</span></li>								{/foreach}							</ul>
Copy after login


以上这个代码怎么写倒序排序,多谢啦


回复讨论(解决方案)

问题描述不清晰 

通过执行的sql排序即可

order by xx desc 

你这个是不是在htm模板文件你找一下对应的php后缀的再里面加上order  by   XX   desc就可以了

source:php.cn
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