' . $category_name . '';
}else{
echo '
All Recipes
'; }?>
TotalResults = $total_res;
/* If you want to change options, do so like this INSTEAD of changing them directly in the class! */
$Paging->ResultsPerPage = 10;
$Paging->LinksPerPage = 10;
$Paging->PageVarName = "page";
/* Get our array of valuable paging information! */
$InfoArray = $Paging->InfoArray();
/* Print that crap out */
// print("
"; //echo "Displaying results " . $InfoArray["START_OFFSET"] . " - " . $InfoArray["END_OFFSET"] . " of " . $InfoArray["TOTAL_RESULTS"] . "
"; /* Print our first link */ if($InfoArray["CURRENT_PAGE"]!= 1) { echo "<< "; } else { echo "<< "; } /* Print out our prev link */ if($InfoArray["PREV_PAGE"]) { echo "Previous | "; } else { echo "Previous | "; } /* Example of how to print our number links! */ for($i=0; $i" . $InfoArray["PAGE_NUMBERS"][$i] . " | ";
}
}
/* Print out our next link */
if($InfoArray["NEXT_PAGE"]) {
echo " Next";
} else {
echo " Next";
}
/* Print our last link */
if($InfoArray["CURRENT_PAGE"]!= $InfoArray["TOTAL_PAGES"]) {
echo " >>";
} else {
echo " >>";
}
?>
"); print_r($InfoArray); print(""); /* Everything below here are just examples! */ /* Print our some info like "Displaying page 1 of 49" */ // echo "Displaying page " . $InfoArray["CURRENT_PAGE"] . " of " . $InfoArray["TOTAL_PAGES"] . "
"; //echo "Displaying results " . $InfoArray["START_OFFSET"] . " - " . $InfoArray["END_OFFSET"] . " of " . $InfoArray["TOTAL_RESULTS"] . "
"; /* Print our first link */ if($InfoArray["CURRENT_PAGE"]!= 1) { echo "<< "; } else { echo "<< "; } /* Print out our prev link */ if($InfoArray["PREV_PAGE"]) { echo "Previous | "; } else { echo "Previous | "; } /* Example of how to print our number links! */ for($i=0; $i