希望在会员中心首页,调用显示会员总共投稿发布了多少篇信息,以帝国CMS7.0为例,代码如下: 1 ?= $empire -gettotal( select count(*) as total from phome_ecms_info where userid=$user[userid] )? 这是根据数
希望在会员中心首页,调用显示会员总共投稿发布了多少篇信息,以帝国CMS7.0为例,代码如下:
1 |
<?= $empire ->gettotal( "select count(*) as total from phome_ecms_info where userid='$user[userid]' " )?>
|
这是根据数据表查询调用的,所以在代码中修改成网站实际数据表
转载请说明出处
知优网 » 帝国CMS会员中心调用会员发布信息总数(帝国cms会员系统)
知优网 » 帝国CMS会员中心调用会员发布信息总数(帝国cms会员系统)