帝国cms字段调用首页 帝国cms字段调用首页是什么

帝国cms首页多表调用,要调用栏目缩略图+标题。

本来不想回答

创新互联公司专注于蒙城网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供蒙城营销型网站建设,蒙城网站制作、蒙城网页设计、蒙城网站官网定制、小程序开发服务,打造蒙城网络公司原创品牌,更为您提供蒙城网站排名全网营销落地服务。

去年做过项目4表联合

拿去自己改吧

不会改就没办法

不解释

[e:loop={'select *

from

(

(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news where istop=1 order by newstime desc limit 13 )

Union All

(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news1 where istop=1 order by newstime desc limit 13)

Union All

(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news2 where istop=1 order by newstime desc limit 13)

Union All

(select id,classid,istop,title,titleurl,titlepic,newstime from phome_ecms_news3 where istop=1 order by newstime desc limit 13)

) as A order by newstime desc limit 20',0,24,0}]

?php

$fb=$empire-fetch1("select *

from

(

(select id,classid,smalltext from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,smalltext from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,smalltext from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,smalltext from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

) as A");

?

li class="clearfix"

a target='_blank' href="?=$bqr[titleurl]?" title="?=$bqr[title]?" class="index-img"img src="?=$bqr[titlepic]?$bqr[titlepic]:'404.jpg'?" alt="?=$bqr[title]?"/a

div class="index-text"

h1a target='_blank' href="?=$bqr[titleurl]?"?=$bqr[title]?/a

/h1

div class="index-con"/div

div class="index-intro"a target="_blank" href="?=$bqr[titleurl]??from=index_new_intro"?=$fb[smalltext]?/a/div

div class="index-like clearfix"

span class="time"

?php

$fr=$empire-fetch1("select *

from

(

(select id,classid,infotags from phome_ecms_news_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,infotags from phome_ecms_news1_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,infotags from phome_ecms_news2_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

Union All

(select id,classid,infotags from phome_ecms_news3_data_1 where id='$bqr[id]' and classid='$bqr[classid]')

) as A");

$keyr=explode(',',$fr[infotags]);

for($i=0;$i2;$i++)

{

echo'spana href="/liaotian/tags-'.$keyr[$i].'-0.html" target=_blank'.$keyr[$i].'/a/span ';

}

?

/span

span class="time"?=format_datetime($bqr[newstime],"m-d")?/span

div class="post-ope"

a href="/e/public/digg/?classid=?=$bqr[classid]?id=?=$bqr[id]?dotop=1ajaxarea=diggnum?=$bqr[id]?" class="post-like-btn post-like" id="post-like-top-btn"

script

document.write('script src="/e/public/ViewClick/?classid=?=$bqr[classid]?id=?=$bqr[id]?down=5?t='+Math.random()+'"'+'/script');

/script

/a

/div

/div

/div

/li

[/e:loop]

功能:联合取4表数据

关联取附表简介

并取标签

附加顶功能

动态浏览量等

帝国cms首页调用问题

[e:loop={0,12,3,0}]

?php

if($bqno == 1 || $bqno ==6){

?

dt?=$bqr['title']?cu/dt

?php

}else{

?

dd?=$bqr['title']?xi/dd

?php }?

[/e:loop]

调试图片如图:

帝国cms万能标签首页调用不显示文章名字

1、你mysql查询代码中的 where firsttitle in (1) 这个语句的用意是表示只调用1级头条的信息,所以,你要先确认 你的news表中有 1级头条的数据,可以使用mysql工具(如phpmyadmin、navicat等)打开phome_ecms_news表来查看;

2、发现如果确实存在数据,那么要检验是不是这些1级头条的数据 的 ftitle字段(“副标题”)是否为空,如果为空则需补足;

关于eloop,建议你简化sql语句,具体参帝国官方网页链接


网站标题:帝国cms字段调用首页 帝国cms字段调用首页是什么
当前URL:http://azwzsj.com/article/dddjoei.html