打開/member/inc/config_space.php
最后加入以下函數(shù)
1 2 3 4 5 6 7 8 9 10 | function count_arc() { global $dsql,$uid; $sql = "SELECT mid,userid FROM `dede_member` WHERE `userid` = '".$uid."'"; $row = $dsql->GetOne($sql); $count = $dsql->GetOne("select COUNT(*) AS dd FROM dede_archives where mid='".$row['mid']."'"); return $count['dd']; } |
模版任意頁面中調(diào)用
<?php echo count_arc();?>
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會員發(fā)布,如果侵犯了您的權(quán)益請與我們聯(lián)系,我們將在24小時內(nèi)刪除!謝謝!
轉(zhuǎn)載請注明: 織夢調(diào)用當前會員發(fā)布的文章總數(shù)