Thanks again, but I'm afraid I must be doing something wrong. The footer stopped working properly after I tried to remove the looping 'if/else' bit and insert the Homepage link. :)So, if we could put everything together and have one PHP code without looping and including the "Previous Chapter | Homepage | Next Chapter" links what should it all look like?
Cool, thanks. Oh, and if I want to have a footer like:Previous Chapter | Homepage | Next Chapter... Can I just insert a plain HTML link (e.g. www.myhomepage.com) in the middle of that PHP code? Or do I have to insert the homepage link in the middle of two separate PHP scripts?
I'm working on a text-based web site with hundreds of chapters. I need a header/footer on most pages with a link to "previous chapter" and "next chapter". I don't want to code all these chapter links manually, it'll take forever. Is there any simple way of creating multiple internal links? Using CSS or Javascript perhaps?