I'm in the process of creating a PHP-based navigation for a comic series I'm hosting. So far I have a fairly simple template-with-variable-image thing worked out (viewable at http://tisoft.subfactor.net/tisoft/comics.php).
Anyway, what I'm trying to do is have it so in the page where the issues are displayed, there is "FIRST - PREVIOUS - COMICS - NEXT - LAST" instead of just "COMICS". It's simple enough for First, Comics and Last, since the url doesn't change, but I can't figure out how I'd go about making the Previous and Next links since they change according to which comic is being displayed. Is there a simple way to do this or should I just keep it as it is? Thanks in advance!
Comic navigation in PHP
Moderator: General Moderators
-
Bennettman
- Forum Contributor
- Posts: 130
- Joined: Sat Jun 15, 2002 3:58 pm
-
Bennettman
- Forum Contributor
- Posts: 130
- Joined: Sat Jun 15, 2002 3:58 pm
OK, let me rephrase that ;p I've worked out a sort of way of doing it, but I don't have a clue how to implement it.
K, on my comics page http://tisoft.subfactor.net/tisoft/comics.php, I'm trying to get it so that on the page that displays the comic itself, it has links to the first, last, previous and next comic, as well as the link back to the main comics page. The only simple way I can think of doing it, is to have a formula taking the current id (or another value that's the same as the current id value, and taking 1 off for Previous (and added 1 for Next), then have a PHP print command putting the link on. Anyone know how to do this, cause my first theory was totally wrong ;p
K, on my comics page http://tisoft.subfactor.net/tisoft/comics.php, I'm trying to get it so that on the page that displays the comic itself, it has links to the first, last, previous and next comic, as well as the link back to the main comics page. The only simple way I can think of doing it, is to have a formula taking the current id (or another value that's the same as the current id value, and taking 1 off for Previous (and added 1 for Next), then have a PHP print command putting the link on. Anyone know how to do this, cause my first theory was totally wrong ;p
-
Bennettman
- Forum Contributor
- Posts: 130
- Joined: Sat Jun 15, 2002 3:58 pm