通过以下方法,可以在会员中心任意页面,比如会员中心首页,以帝国CMS7.0为例,调用会员投稿发布的所有信息列表: 1 2 3 4 5 6 7 8 9 10 ?php $spacesql = $empire -query( select * from phome(这个是
通过以下方法,可以在会员中心任意页面,比如会员中心首页,以帝国CMS7.0为例,调用会员投稿发布的所有信息列表:
1 2 3 4 5 6 7 8 9 10 |
<?php
$spacesql = $empire ->query( "select * from phome(这个是表前缀)_ecms_表 where userid='$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
}
?>
|
这是根据数据表来查询调用的。在第三行处修改 数据表 phome_ecms_info
转载请说明出处
知优网 » 帝国CMS会员中心调用发布的所有信息列表(帝国cms会员系统)
知优网 » 帝国CMS会员中心调用发布的所有信息列表(帝国cms会员系统)