getArticles(array("categories" => 361, 'count' => $count, 'page' => $page)); $maxpage = floor($mostRecent[0]['totalArticles']/$count); $startpage = ($page > 3)? ($page - 3) : 0; $endpage = ($page < ($maxpage-3))? ($page + 3) : $maxpage; include ('include/header.php'); /* $p = (isset($_GET['p']))? $_GET['p'] : 1; $pagesize = 20; $maxpage = ceil($total / $pagesize); if ($p > ($total / $pagesize)) $p = $maxpage; */ //new dBug($total); ?>
1