织梦ajax动态获取会员总数

在织梦/plus/ 下新建一个 memcount.php

01 <?php
02  
03 require_once(dirname(__FILE__)."/../include/common.inc.php");
04  
05 if(!empty($view))
06  
07 {
08  
09     $row = $dsql->GetOne(" SELECT COUNT(*) AS dd FROM `html_member` ");
10  
11     if(is_array($row))
12  
13     {
14  
15         echo "document.write('".$row['dd']."')";
16  
17     }
18  
19 }
20  
21 exit();

织梦前台模板调用
共有会员 <script src="{dede:field name='phpurl'/}/memcount.php?view=yes" type='text/javascript'></script>