I have a list of 4700 pages on my website, all dynamically generated via php/mysql and now I want to create a link to the previous record and to the next record in the table for the bottom of each page. What do I do? I do not want to paginate necessarily. I want the title of the page in the link (not next or previous).
For example lets say that "mortgage loan" is the keyword phrase (or title) listed in my database for the page mortgage-loan.html. The current page is "mortgage loans" and mortgage-loans.html. The next page is keyword "mortgage refinancing" for the page mortgage-refinancing.html. I want links that look like...
mortgage loan < current page >mortgage refinancing
My database has the titles of each page in one column and a unique auto incremented column called ID. (but I am not sure if all numbers are a perfect 1,2,3,4,5,6,7... any more)
Something like...
ID Title
--+------------------------------+
1 mortgage loan
2 mortgage loans
3 mortgage refinancing
etc, etc, & so on... (4700 more)
How do I create a navigation link bar like this? I am sure it is simple. Could someone help a php newbie on this? :-)
--Chris