You just have to create 1 variable you send to your script: a variable that contains the current position on the products. The just print the new links like:
print "<a href=\"myscript.php?start=".($start+20)."\">Next 20</a><br>\n";
print "<a href=\"myscript.php?start=".($start-20)."\">Previous 20</a><br>\n";
if you have the products in an array, just do
for($i=$start;$i<($start+20);$i++)
print "Product: ".$arr[$i]."<br>\n";
On SQL, just skip the prods before the $start.
🙂Mikko