选主机收集整理的这篇文章主要介绍了织梦dedecms动态获取会员总数方法,选主机小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在/plus/目录下新建一个memcount.php
1
2
3
4
5
6
7
8
9
10
11
|
<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");
if(!empty($view))
{
$row=$dsql->GetOne("SELECTCOUNT(*)ASddFROM`dede_member`");
if(is_array($row))
{
echo"document.write('".$row['dd']."');\r\n";
}
}
exit();
|
(此图片来源于网络,如有侵权,请联系删除! )
前台模板调用
1
|
共有会员<scriptsrc="{dede:fieldname='phpurl'/}/memcount.php?view=yes"type='text/javascript'language="javascript"></script>
|