ok here is the code i changed
<?php
/
This script will be called as Ep.php?comic=0001 where
0001 is the number on the file Ep0001.jpg and so on. To view
the latest comic you would call this script as just Ep.php
/
$comic = $_GET['comic'];
$file = 'Ep' . $comic . '.jpg';
$path = 'http://nntb.port5.com/Image/'; //the path to your images directory, must have the trailing slash
$latest = 'Ep00002.jpg'; //change the number on this when you make a new comic
if (empty($comic)) {
?>
<img src="<?php echo $path . $latest; ?>" alt="The latest comic">
<?php //
}
else {
if (file_exists($path . $file)) {
?>
<img src="<?php echo $path . $file; ?>" alt="Comic Number <?php echo $comic; ?>">
<?php
}
else {
echo('AAAAAAAAAAAAA what did you do i cant find the ep your looking for???');
}
}
?>
<center>
<a href="Ep.php?comic=00001">First</a> |
<a href="Ep.php?comic=<?php echo $comic -1; ?>">Previous</a> |
<a href="Ep.php?comic=<?php echo $comic++; ?>">Next</a> |
<a href="Ep.php">Latest</a>
</center>
now there is no problums with this script that i can see besides that in the Else statment i did not go back to php mode. i fixed that and the path= // www.blablabla.whatever i shifted the comments so the path was not in the way any more. it seems to work fine except for the fact that it does not load any image except for the latest comic. all the links dont change the image that it loads.
the site is http://nntb.port5.com/Ep.php
how do i fix it?