显示最新的itens添加,而不是最旧的 [英] Show latest itens added, instead of oldest

查看:64
本文介绍了显示最新的itens添加,而不是最旧的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要订购我的网站的子类别,但我没有得到任何成功,尝试使用desc而不是asc,没有任何效果,正如您在下面的URL中看到的,它是订购从后到前,它应该从前到后,我的意思是,最新添加的itens应该先到,在第一页,但系统做对面,它显示最老的强度首先,看看(它是在葡萄牙语,要查看您可以点击Detalhes的每个项目,然后,在转到另一页后,查看Publicado em:的日期,日期格式为DD / MM / YYYY ;:

http:// lucrebem。 com.br/showCat.php?cat_id=155




负责它的代码是这个一:


Hi, I''m tring to order the subcategories of my website, but I''m not getting any sucess, tried put desc instead of asc, nothing worked, as you can see in the URL below, it is ordering from back to front, and it should from front to back, I mean, latest added itens should come first, and in the first page, but the system does the oposite, it show the oldest intens first, take a look (It is in portuguese, to see each item you can click on "Detalhes", then, after going to the other page, take a look at the date that is "Publicado em:", date format is "DD/MM/YYYY":

http://lucrebem.com.br/showCat.php?cat_id=155





The code responsible for it is this one:


展开 | 选择 | Wrap | 行号

推荐答案

对不起,这是对的代码:
I''m sorry, this is the correct code:
展开 | 选择 | Wrap | 行号


我在SQL上尝试ORDER BY子句。
I?d try the ORDER BY clause on the SQL.


@Dormilich


你的意思是在phpmyadmin上的db里面?
@Dormilich
You mean inside the db on phpmyadmin?


这篇关于显示最新的itens添加,而不是最旧的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆