我做了个自定义列表做网站地图,可是那些文章排列却是旧的时间在前面,请问各位怎么样才能是最新的文章排前面呢?
搞掂,自己找到解决办法了.
热门信息列表 统计记录select count(*) as total from [!db.pre!]ecms_news where checked=1 order by onclick desc 查询记录select * from [!db.pre!]ecms_news where checked=1 order by onclick desc
推荐信息列表 统计记录select count(*) as total from [!db.pre!]ecms_news where checked=1 and isgood=1 order by newstime desc 查询记录select * from [!db.pre!]ecms_news where checked=1 and isgood=1 order by newstime desc
统计记录select count(*) as total from [!db.pre!]ecms_news where checked=1 and firsttitle=1 order by newstime desc 查询记录select * from [!db.pre!]ecms_news where checked=1 and firsttitle=1 order by newstime desc
最新的语句不知道怎么写
呵呵,终于自己找到喇
全站按最新的排行调用语句
统计记录select count(*) as total from [!db.pre!]ecms_news where checked=1 order by newstime desc 查询记录select * from [!db.pre!]ecms_news where checked=1 order by newstime desc
前十条最新的
根据最新文章 select * from [!db.pre!]ecms_news where checked=1 order by newstime desc limit 10
|