I'm sure this is fairly easy to do with PHP, but I can't seem to find any information on how it might be done, so I hope you can help.
I'm wanted to design a simple navigation page where forum topics can be browsed by their topic ID. Or, for that matter, where any numbered files can be browsed.
Alright, that was confusing, lemme explain it this way.
Say I have some articles set up as 0001.html, 0002.html, 0003.html ... 5364.html, etc. I'd want to have a way to browse through these files by their numbered names. Like, if I'm looking at 0031.html and click next it would take me to 0032.html.
I'm asking because a friend wants to implement this on his site without having to manually edit the code for thousands of pages in order to have Next and Previous links. If there's any way to implement this, I"m sure it's with PHP.
So, is there any way to specify a starting point (which numbered file to start at) and have PHP "know" to just look for 1 number higher to use as the "next" hyperlink and 1 number lower to use as the "Previous" hyperlink?
This is beyond me, but I figured I'd at least ask here.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks