设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 创业者 数据 手机
当前位置: 首页 > 教程 > 正文

帝国CMS多表调用最新信息

发布时间:2022-06-28 13:21 所属栏目:61 来源:互联网
导读:帝国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
  帝国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条图片信息,自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等.
 
  [e:loop={'download',10,23,0,'isgood=1'}]
  <li><a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <span><a href="/e/DownSys/DownSoft/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&pathid=0" target="_blank">点击下载</a></span></li>
  [/e:loop]//开源软件:phpfensi.com
  说明:A标代码为调用下载地址.
 
 

(编辑:ASP站长网)

    网友评论
    推荐文章
      热点阅读