Basically here's how I'd need it to work. Say I have a table with an ID auto-increment field in it. Now say I have 100 rows and my pages each hold 10 rows. Basically I need to get the page number, let's say 3, multiply it by 10 to get 30 (we'll call that variable $a) and then I need another variable with 3 *10 + 10 ($b = 40). Then I need to basically do something like:
mysql_query("SELECT * FROM table WHERE id >= $a OR id <= $b");
But now that I gave it thought, that last query should work. I'm gunna go try it and get back to this topic if it works.