[MySQL] querying only a section of entries

How do you query entries with ID 1 through 10 for page one. Then 11 through 20 for page two, and so on…? A perfect example is this forum, where threads are split into multiple pages.


And how do you put variables at the end of your URL? I’ve seen people do http://www.website.com/forum?page=2

to get vars from the url, use $_GET. or you can use global $page; to get the page variable from the url. separate variables with an ampersand like: http://website.com/forum?page=2&post=34