Everyone knows that Empire CMS has a custom JS function, which is often used in search pages or other real-time dynamic displays. Although this function is available, many friends do not know it
SQL statements cannot be used at all. For this reason, here are some commonly used ones. I hope it will be helpful to everyone!
1,根据最新文章 select * from [!db.pre!]ecms_news where checked=1 order by newstime desc limit 10 2,根据推荐文章 select * from [!db.pre!]ecms_news where checked=1 and isgood=1 order by newstime desc limit 10 3,根据热门文章 select * from [!db.pre!]ecms_news where checked=1 order by onclick desc limit 10 4,根据头条新闻 select * from [!db.pre!]ecms_news where checked=1 and firsttitle=1 order by newstime desc limit 10 5,根据评论排行 select * from [!db.pre!]ecms_news where checked=1 order by plnum desc limit 10 6,根据digg排行 select * from [!db.pre!]ecms_news where checked=1 order by diggtop desc limit 10 7,根据投票排行 select * from [!db.pre!]ecms_news where checked=1 order by votenum desc limit 10 8,根据下载排行 select * from [!db.pre!]ecms_news where checked=1 order by totaldown desc limit 10 9,根据评分排行 select * from [!db.pre!]ecms_news where checked=1 order by infopfen desc limit 10
It is recommended to study "Empirecms Tutorial".
The above is the detailed content of Share Empire CMS custom JS statements in detail. For more information, please follow other related articles on the PHP Chinese website!