Home  >  Article  >  Backend Development  >  初学者求教,这个如何倒序排序

初学者求教,这个如何倒序排序

WBOY
WBOYOriginal
2016-06-13 11:54:39805browse

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

<ul class="article_list"><br />								{foreach from=$list item=item}<br />								<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><br />								{/foreach}<br />							</ul><br />


以上这个代码怎么写倒序排序,多谢啦
------解决方案--------------------
你这个是不是在htm模板文件你找一下对应的php后缀的再里面加上order  by   XX   desc就可以了

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