Methods to achieve first, previous, next and last navigation

Posted by Koroviev on Stack Overflow See other posts from Stack Overflow or by Koroviev
Published on 2010-03-08T17:27:40Z Indexed on 2010/03/08 17:36 UTC
Read the original article Hit count: 288

Filed under:
|
|
|
|

I'm new to programming and have a question about navigation. What are the various methods that can achieve a "First", "Previous", "Next" and "Last" navigation, as seen in article or comic based sites? (Admittedly the "First" link isn't confusing as it can stay static, but what about the others?) For example, on the 50th page, the links would appropriately lead to the 49th and 51st (if it exists, if not it would not function but would automatically become active when such a page exists. In most examples of this I see urls ending with something like ".php?id=50" but am not certain how it's achieved, with a database? Any help will be very much appreciated, thanks.

© Stack Overflow or respective owner

Related posts about navigation

Related posts about dynamic