$delqry"; } } if ($_GET['year']!='') { $curyear=$_GET['year']; } else { $curyear=date('Y'); } if ($_GET['month']!='') { $curmonth=$_GET['month']; } else { $curmonth=date('m'); } $begindate=$curyear."-".$curmonth."-01"; $enddate=$curyear."-".$curmonth."-31"; $start=$_GET['nextpage']; $curpage=$_GET['curpage']; if (!$start) { $start=0; } if (!$curpage) { $curpage=1; } $nextpage=$start+10; $prevpage=$start-10; $totalpage=10; $SelCountQry="Select count(*) from news_publish where category_id='$catid' and datepost like '$curyear-%'"; $SelectCountRec = SelectQry($SelCountQry); $SelMonth="Select datepost from news_publish where category_id='$catid' order by datepost asc limit 1"; $SelMonthRec=SelectQry($SelMonth); $firstdate=explode('-',$SelMonthRec[0]['datepost']); $firstyear=$firstdate[0]; //print "currrent year: $curyear first year: $firstyear
"; $totalpage=ceil($SelectCountRec[0][0]/10); //print "total result: " . $SelectCountRec[0][0] . "

"; include("sortbydate_carribeannew.php"); ?>
News Archive 10) { $SelCountQry="Select count(*) from news_publish where category_id='$catid' and datepost<= '$enddate' and datepost >='$begindate'"; $SelectCountRec = SelectQry($SelCountQry); $totalpage=ceil($SelectCountRec[0][0]/10); $Selectjumpreport="Select * from news_publish where category_id='$catid' and datepost<= '$enddate' and datepost >='$begindate' order by datepost desc Limit $start,10"; } else { $Selectjumpreport="Select * from news_publish where category_id='$catid' and datepost like '$curyear-%' order by datepost desc Limit $start,10"; } $SelectjumpreportRec=SelectQry("$Selectjumpreport"); //print "$SelCountQry
$Selectjumpreport

"; for($Ints=0;$Ints $headline[$Ints]

$Updatetimestamp[$Ints]

$smurf[$Ints] >>"; if (($catid==67) && ($fid==2)) { $orig_link=$SelectjumpreportRec[$Ints]['exlink_url']; print "  ($orig_link)"; print "  ((remove article))"; } print "


"; } ?>
start: $start | next: $nextpage | previous: $prevpage
"; print ""; for($Id=1;$Id<=$totalpage;$Id++) { if ($curpage==$Id) { print "  ".$Id.""; } else { $nextindex=$Id*10; $nextindex=$nextindex-10; print "  ".$Id.""; } } print "  
"; ?>