A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > 帝国cms > 分享帝国cms教程之调用全部数据表的最新数据的方法

分享帝国cms教程之调用全部数据表的最新数据的方法

时间:2015-06-05 11:30作者:sa人气:100

代码如下:

[e:loop={'select * from (

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_book where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_course where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_soft where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_game where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_js where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_templet where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_mv where newstime union

select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime) a order by newstime desc limit 7',7,24,0}]

<li><b><?=$bqno?></b><div><a href="<?=$bqsr[classurl]?>" target="_blank">[<?=$bqsr[classname]?>]</a></div><a href="<?=$bqsr['titleurl']?>" class="gxone" target="_blank"><?=$bqr['title']?></a></li>

[/e:loop]


 

标签分享,帝国,cms,教程,调用,全部,数据表,最新,数据,方

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号