I want to make some comments regarding your coding style. This is personal preference and everyone develops their own style over time, but I have a few notes that I think everyone would agree with.
First, I'm sure the formatting just got lost when you posted to the board, but make sure you use indentation in your source. I didn't download your zip so I'm sure you are using it properly. Always make the most use out of white space to help make your code readable.
Second, make sure you comment your code. This is something that everyone is guilty of, but it's best to get started early. I have written a lot of code for personal projects and didn't comment it, thinking I'd come back later and understand what I was trying to do. Ha, yeah right. Comment your code into sections so you and anyone who looks at your code will know what you're thinking.
Third, this is a personal preference but put your if/else statements on different lines. You have
php
if ($comic >= $count) {} else {$comic++;}
This should be split into
php
if ($comic >= $count) {
}
else {
$comic++;
}
However, my fourth point is to not use an if/else statement if you're only going to perform an action on one of the conditions. That is better handled by using just an if statement. What you are trying to do above could be accomplished by
php
if ($comic < $count) {
$comic++;
}
Do you see how much easier that is to read? You will really see the difference if you do that through all your source.
Again, break into multiple lines
php
$comic--;if ($comic == 0) {$comic = 1;}
Should be
php
$comic--;
if ($comic == 0) {
$comic = 1;
}
Also, make sure you know the difference between ++$comic and $comic++.
That's about it for now, just keep those notes in mind. I personally hate going through source code looking to fix it because my system isn't set up with the same files as yours, however I'll take a look and figure out what you need to do. I'm going to post a different method in a new message.