Hiya Fritz! Long time no see. I've been too busy with my own site to visit yours for a long time.
I found this bit of code that helped me with the exact same thing. Very similar to what you've got there, but I use a variable for my limit, as users can choose how many results per page.
// If page 1, then don't show PREV
if ($offset >= 1) {
$prevoffset = $offset - $limit;
echo "<a href=\"$PHP_SELF?query=$holdquery&offset=$prevoffset&limit=$limit&numrows=$numrows\"> [PREV]</a> \n";
}
// calculate number of pages needing links
$pages=intval($numrows/$limit);
Hope this helps and is not redundant to what's already been covered.
Cheers!
Fara