帝国cms会员空间调用会员栏目投稿数量

帝国cms会员空间调用会员栏目投稿数量,第1张

概述帝国cms使用以下代码可以使会员空间调用会员栏目投稿数量的方法教程<?php

帝国CMS使用以下代码可以使会员空间调用会员栏目投稿数量的方法教程

<?PHP

//test start
require("../data/dbcache/class.PHP");
$class_total=array();
foreach($class_r as $classID =>$v)
{
//只列出终极栏目
if($class_r[$classID])
{
$class_total[$classID]=$empire->gettotal("select count(*) as total from {$dbtbpre}eCMS_".$class_r[$classID][tbname]." where classID='$classID' and userID='$userID' and ismember=1");

if($class_total[$classID]==0)
{
continue;
}
//现在直接输出测试 你也可以用数组其他地方调用
echo "栏目ID:$classID 投稿数量: $class_total[$classID] <br>";
}
}
//test end


?>

总结

以上是内存溢出为你收集整理的帝国cms会员空间调用会员栏目投稿数量全部内容,希望文章能够帮你解决帝国cms会员空间调用会员栏目投稿数量所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/1004013.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存