C & G Stamps 20th Century Unused Issues on
$page_num of 20";
} else {
$page_num=$offset / $limit;
$page_num++;
print "Page Number $page_num";
?>
|
Record # |
Photo |
Scott # |
Description |
Catalog Value |
Price |
" . $row['record'] . " |
Photo | " .
$row['scott'] . " | " . $row['description'] . " | " . $row['catalog'] . "
| " . $row['mint'] . " | ");
}
while ($row=mysql_fetch_array($result));
}
// next we need to do the links to other results
echo ("");
print "Pg $page_num ";
}
if ($offset > 1) { // bypass PREV link if offset is 0
$prevoffset=$offset-$limit;
print "Prev \n";
}
// calculate number of pages needing links
$pages=intval($numrows/$limit);
if ($numrows%$limit) {
// has remainder so add one page
$pages++;
}
for ($i=1;$i<=$pages;$i++) { // loop thru
$newoffset=$limit*($i-1);
print "$i ";
}
// check to see if last page
if (!(($offset/$limit)==$pages) && $pages!=1) {
// not last page so give NEXT link
$newoffset=$offset+$limit;
if ( $newoffset < $numrows )
print "Next ";
}
?>
|