当前位置:网站首页 > 教程 > 帝国cms教程 > 帝国cms关联外表连接sql语句

帝国cms关联外表连接sql语句

蓝色枫叶 蓝色枫叶 2020-05-25 前往当前专题: 帝国cms教程

内容页的关联语句

[e:loop={'line',1,18,0,"title='$navinfor[line]'"}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><b><<?=$bqr['title']?>></b> <span>&nbsp;&nbsp;¥<?=$bqr['tprice']?></span></a>
[/e:loop] 

列表页的关联语句

$line=$empire->fetch1("select title,id,classid,newspath,filename,groupid,titleurl from phome_ecms_line where title='$r[line]' limit 1");
$lineurl=sys_ReturnBqTitleLink($line);
$listtemp='<li><a href="'.$lineurl.'">'.$line[title].'</a> </li>';

蓝色枫叶

蓝色枫叶

TA很懒,啥都没写...

Copyright 蓝色枫叶 www.lansefengye Rights Reserved.