0 ) {
?>
">
- []:
" href="" style="font-weight: bold"> " target="_NewsWindow">
";
echo "
";
// print 'previous' link only if we're not
// on page one
if ($pageNum > 1)
{
$page = $pageNum - 1;
$prev = "
[Newer] ";
$first = "
[Newest Articles] ";
}
else
{
$prev = ' [Newer] '; // we're on page one, don't enable 'previous' link
$first = ' [Newest Articles] '; // nor 'first page' link
}
// print 'next' link only if we're not
// on the last page
if ($pageNum < $maxPage)
{
$page = $pageNum + 1;
$next = "
[Older] ";
$last = "
[Oldest Articles] ";
}
else
{
$next = ' [Older] '; // we're on the last page, don't enable 'next' link
$last = ' [Oldest Articles] '; // nor 'last page' link
}
// print the page navigation link
echo $first . $prev . " Showing page
$pageNum of
$maxPage pages " . $next . $last;
mysql_close();
?>