'."Page ";
$output[] = $currentpage + 1 . " 0f ".$pages.'
';
//the logic for determining what the links in 'previous page' and 'next page' point to...also based off of if we are searching all cakes, or a specific sub-cat...logic is easy to follow..keep in mind +1 offset from array..arry index 0 = page 1
if ($currentpage + 1 == '1'){
if($returnAll == 0){
$output[] = ''." <-- Previous Page ".''."|";
}
else{
$output[] = ''." <-- Previous Page ".''."|";
}
}
else {
if($returnAll == 0){
$output[] = ''." <-- Previous Page ".''."|";
}
else{
$output[] = ''." <-- Previous Page ".''."|";
}
}
if ($currentpage + 1 == $pages){
if($returnAll == 0){
$output[] = ''." Next Page -->".'';
}
else{
$output[] = '
'." Next Page -->".'';
}
}
else {
$nextpage = $currentpage +2;
if($returnAll == 0){
$output[] = '
'." Next Page -->".'';
}
else{
$output[] = '
'." Next Page -->".'';
}
}
/////////The pagation and array have beem created, will be echoed on main page//////////////////////////////
//EOF
?>
Select acategory
Warning: join(): Invalid arguments passed in /home/wwwjhsb/public_html/pages/selection.php on line 161
ViewingBreakfast
Warning: join(): Invalid arguments passed in /home/wwwjhsb/public_html/pages/selection.php on line 192