帝國CMS多表調用最新信息的方法

帝國CMS多表調用最新信息的方法

本文實例講述了帝國cms多表調用最新信息的方法。分享給大家供大家參考。具體實現方法如下:

代碼如下:

[e:loop={'select?*?from?( select?id,classid,titleurl,filename,title,newstime,titlepic?from?phome_ecms_news?where?newstime?union select?id,classid,titleurl,filename,title,newstime,titlepic?from?phome_ecms_photo?where?newstime?union select?id,classid,titleurl,filename,title,newstime,titlepic?from?phome_ecms_flash?where?newstime?union select?id,classid,titleurl,filename,title,newstime,titlepic?from?phome_ecms_article?where?newstime)?a?order? by?newstime?desc?limit?10',10,24,1}] [/e:loop]

帝國cms多表調用最新信息,該演示代碼為默認數據表下全站最新10條圖片信息,自己根據需求可以附加條件,實現全站點擊,全站頭條,全

站推薦等等.希望本文所述對大家的帝國CMS建站有所幫助。推薦學習《帝國cms教程

? 版權聲明
THE END
喜歡就支持一下吧
點贊6 分享