mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
news frontend total count issue (thankyou, thankyou, thankyou steve!)
This commit is contained in:
12
news.php
12
news.php
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/news.php,v $
|
| $Source: /cvs_backup/e107_0.8/news.php,v $
|
||||||
| $Revision: 1.12 $
|
| $Revision: 1.13 $
|
||||||
| $Date: 2008-11-29 15:35:31 $
|
| $Date: 2008-12-02 20:51:52 $
|
||||||
| $Author: e107steved $
|
| $Author: secretr $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
require_once("class2.php");
|
require_once("class2.php");
|
||||||
@@ -399,11 +399,11 @@ if (!($news_total = $sql->db_Select_gen($query)))
|
|||||||
}
|
}
|
||||||
|
|
||||||
$newsAr = $sql -> db_getList();
|
$newsAr = $sql -> db_getList();
|
||||||
|
$news_total=$sql->total_results;
|
||||||
// Get number of entries
|
// Get number of entries
|
||||||
$sql -> db_Select_gen("SELECT FOUND_ROWS()");
|
//$sql -> db_Select_gen("SELECT FOUND_ROWS()");
|
||||||
$frows = $sql -> db_Fetch();
|
$frows = $sql -> db_Fetch();
|
||||||
$news_total = $frows[0];
|
//$news_total = $frows[0];
|
||||||
|
|
||||||
//echo "<br />Total ".$news_total." items found, ".count($newsAr)." displayed, Interval = {$interval}<br /><br />";
|
//echo "<br />Total ".$news_total." items found, ".count($newsAr)." displayed, Interval = {$interval}<br /><br />";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user