网站建设资讯

NEWS

网站建设资讯

帝国cms字段关联 帝国cms数据表

怎么样让会员的某字段也可以关联外表字段呢 帝国cms

把字段的:输入表单替换html代码 复制到:投稿表单替换html代码

成都创新互联是专业的华阴网站建设公司,华阴接单;提供成都网站设计、成都网站制作,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行华阴网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!

你的采纳是我前进的动力,还有不懂的地方,请继续“追问”。

如你还有别的问题,可另外向我求助;答题不易,互相理解,互相帮助。

帝国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表数据

关联取附表简介

并取标签

附加顶功能

动态浏览量等

请教:如何关联两个数据表的ID字段 帝国cms

在添加信息时注意编辑器下面的那个“取第 张上传图为标题图片” 写上一就可以了


当前文章:帝国cms字段关联 帝国cms数据表
标题链接:http://cdweb.net/article/dogjsge.html