织梦ajax动态获取会员总数

织梦/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=http://www.dede58.com/"{dede:field name='phpurl'/}/memcount.php?view=yes" type='text/javascript'></script>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/f223bfcb15cdd4ff44f297dc0dfc5e7c.html