From 6fd8f7ed1d2080aa4eccc4cb943438e659681934 Mon Sep 17 00:00:00 2001 From: secretr Date: Tue, 2 Dec 2008 20:51:52 +0000 Subject: [PATCH] news frontend total count issue (thankyou, thankyou, thankyou steve!) --- news.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/news.php b/news.php index 6c54069fe..df75962bb 100644 --- a/news.php +++ b/news.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/news.php,v $ -| $Revision: 1.12 $ -| $Date: 2008-11-29 15:35:31 $ -| $Author: e107steved $ +| $Revision: 1.13 $ +| $Date: 2008-12-02 20:51:52 $ +| $Author: secretr $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); @@ -399,11 +399,11 @@ if (!($news_total = $sql->db_Select_gen($query))) } $newsAr = $sql -> db_getList(); - +$news_total=$sql->total_results; // Get number of entries -$sql -> db_Select_gen("SELECT FOUND_ROWS()"); +//$sql -> db_Select_gen("SELECT FOUND_ROWS()"); $frows = $sql -> db_Fetch(); -$news_total = $frows[0]; +//$news_total = $frows[0]; //echo "
Total ".$news_total." items found, ".count($newsAr)." displayed, Interval = {$interval}

";