= 2001 //if the year is 2003 or later // and $curChunkData["dateFields"]["month"] == 10 //AND if the month is october strtolower($curChunkData["sec"]) == $sec or $parental == 1 ) and ( strtolower($curChunkData["cat"]) == $cat ) ) { $chunkData[] = $curChunkData; //then add it to the list of chunks to show } } $numPages = ceil(sizeof($chunkData) / $chunksPerPage); //print "
"; //print makePageSelector($numPages, $page); //print "
 
"; $firstChunkIndex = $page * $chunksPerPage; $lastChunkIndex = $firstChunkIndex + $chunksPerPage - 1; if($lastChunkIndex > sizeof($chunkData) - 1) $lastChunkIndex = sizeof($chunkData) - 1; for($x = $firstChunkIndex; $x <= $lastChunkIndex; $x++) print formatChunkData($chunkData[$x])."\n\n\n"; ?>