cms秀模板网|织梦模板|静态模板|特效模板的dedecms模板下载平台logo

织梦ajax动态获取会员总数

 2019-08-31
 来源:未知
摘要:/plus/ 下新建一个 memcount.php ?phprequire_once(dirname(__FILE__)."/../include/common.inc.php");if(!empty($view)){ $row = $dsql-GetOne(" SELECT COUNT(*) AS dd FROM `html_member` "); if(is_array($row)) { echo "document.write('".$row['dd

/plus/ 下新建一个 memcount.php

<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");
if(!empty($view))
{
    $row = $dsql->GetOne(" SELECT COUNT(*) AS dd FROM `html_member` ");
    if(is_array($row))
    {
        echo "document.write('".$row['dd']."')";
    }
}
exit();

前台模板调用

共有会员 <script src="{dede:field name='phpurl'/}/memcount.php?view=yes" type='text/javascript'></script>