![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
IP: 218.2.67.121
|
|||
|
|||
|
<?php
if(strpos($_SERVER['REQUEST_URI'], 'ListInfo.php')){ echo $GLOBALS[num]; }else{ sys_TotalData($GLOBALS[navclassid],0,0); } ?> ============ 如只在文章页简单查寻文章总数: [totaldata]$GLOBALS[navclassid],0[/totaldata] |
|
#2
IP: 218.2.67.121
|
|||
|
|||
|
试下这个
<?php $w_total=$empire->fetch1("select count(*) as total from {$dbtbpre}ecms_表名 where classid=$navclassid and checked"); $total=$w_total[total]; ?><span class="num">共有<?=$total?>条</span> 如是v7.2: <?php $w_total=$empire->fetch1("select count(*) as total from {$dbtbpre}ecms_表名 where classid=$navclassid"); $total=$w_total[total]; ?><span class="num">共有<?=$total?>条</span> 如查v7.2新闻列表文章数: <?php $w_total=$empire->fetch1("select count(*) as total from {$dbtbpre}ecms_news where classid=$navclassid"); $total=$w_total[total]; ?><span class="num">共有<?=$total?>条</span> Last edited by Keshena : 2015-10-10 at 08:40 AM |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|