[e:loop={'select * from (
select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_movie where newstime union
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}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]
帝国CMS多表调用最新信息,该演示代码为默认数据表下全站最新10条图片信息,自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等.
[e:loop={'select title,titleurl,titlepic from [!db.pre!]ecms_photo Union All
select title,titleurl,titlepic from [!db.pre!]ecms_download Union All
select title,titleurl,titlepic from [!db.pre!]ecms_news',0,24,0}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]
注释:以上调用的是(图片模型:photo、下载模型:download、新闻模型:news)三个模型的文章
若指定栏目用:where classid in(46,47,51),
若调用推荐在其后追加:and isgood=1,
若指定调用条数在其后追加:limit 10
仿站网认为通常情况下,有以下两种方式的服务器可供选择。(1)虚拟主机方式。所谓虚拟主机是指使用特殊的软硬件技术,把计算机分成若干台"虚拟"...
仿站人员都知道仿站挣的就是时间钱,我们做的越快才能挣的越多,那么提高我们正常的仿站效率是每个仿站人员必修技能,那么快速仿站有哪些技巧呢和...
个人仿站基本各行业都会有,无非就是哪些类型仿的多,哪些类型仿的少而已。下面给大家介绍下一些常见的个人仿站类型。一、流量类站点,一般包括影...
1:超低的仿站价格2:上线时间加快,增加效益3:网站效果更加得到提升以及保证
不会,网络上撞脸的网站很多。当然如果太多的话,就容易有负面影响,几个,几十个,都不是问题。界面一样,内容最好区别开。...
做网站总的就是说需要域名 空间 程序3样内容。1.域名解析空间2.空间绑定域名只有这样你的网站输入域名才能才能被人找到,域名是买的,空间也是...