易仿帝国yfdiguo.com

您当前的位置:首页 > 问题库

帝国CMS会员中心调用发布的所有信息列表的方法

zcmcss发表于2017-12-11问题库
通过以下方法,可以在会员中心任意页面,比如会员中心首页,以帝国CMS7.0为例,调用会员投稿发布的所有信息列表:
<?php
$spacesql=$empire->query("select * from phome_ecms_shop where userid='$user[userid]' and ismember=1 order by newstime desc limit 10");
while($spacer=$empire->fetch($spacesql))
{
$titleurl=sys_ReturnBqTitleLink($spacer);//链接
?>
<a href="<?=$titleurl?>"><?=$spacer[title]?></a><br>
<?php
}
?>
这是根据数据表来查询调用的,修改成需要的数据表

热门问题

©2017 易仿帝国yfdiguo.com


友情链接: 阿里云优惠网| 阿里云推荐码| 阿里云教程| 莫愁博客|
♥ www.yfdiguo.com
联系作者QQ: