帝国仿站教程 多表查询+多表标题链接的调用
来源:网络分享
编辑:引流技巧
时间:2026-05-10

多表查询+多表标题链接的调用
[e:loop={ "select a.*,b.gsjc from phome_ecms_news a LEFT JOIN phome_ecms_gssj b on a.gsid=b.id where a.classid in (8) order by a.newstime desc limit 1",5,24,0}]
以上A为第一个表 B为第二个表
" target="_blank"> 这个是第一个表的标题链接及标题
fetch1("select titleurl,groupid,classid,newspath,filename,id from phome_ecms_gssj where id='$bqr[gsid]' limit 1");
$titleurl=sys_ReturnBqTitleLink($r);
echo $titleurl;?> "> 这个是第二个表的标题链接 这个是第二个表的标题
第二个表的标题链接蓝色部分不用修改 ID 对应第一个查询的ID即可


相关文章:
相关推荐:
栏目分类

最新文章

热门文章


