Hello,
I'm currently converting my online comic into a full php site generated by a template.
I have a basic template which contains the layout html and a php tag for the content (the various content files are defined via the URL).
One of my content files is a sub-template containing the following code:
img src="images/comic/<?php print($num); ?>.jpg" width="400" height="630" alt="" border="0"><br><br>
<a href="zcfh.php?id=page&num=<?php print($num); ?>" class="t">previous</a>
<a href="zcfh.php?id=page&num=<?php print($num); ?>" class="t">next</a>
What's missing here is the code in the next and previous buttons that will add or substract from the value $num. Upon first entering the comic section, the page is:
"zcfh.php?id=page&num=1"
What do I need to add in the php tags contained in the URLs? Or is there some better way to do this?
Thank you!