}
$i = $i + 1;
}
if ($total >= $limit)
{
// output paging system (could also do it before we output the page content)
if ($page == 1) // this is the first page - there is no previous page
echo "";
else // not the first page, link to the previous page
echo "Previous";
if ($page == $pager->numPages) // this is the last page - there is no next page
echo "";
else // not the last page, link to the next page
echo " Next";
}
echo "
}
if ($total >= $limit)
{
// output paging system (could also do it before we output the page content)
if ($page == 1) // this is the first page - there is no previous page
echo "";
else // not the first page, link to the previous page
echo "Previous";
if ($page == $pager->numPages) // this is the last page - there is no next page
echo "";
else // not the last page, link to the next page
echo " Next";
}
return $total;
}
?>