1) $last = "ak.html?page=" . ($page - 1); // ...unless it's the first page, which returns to index. else $last = "index.html"; // From now on, $page should always be two digits if($page < 10) $page = "0" . $page; // Set the image size and image name (one per page only) $pic = "px" . $page . ".jpg"; $imagesize = getimagesize( $pic ); // extracts array, not size $imagesize = $imagesize[3]; // actual size string is part of array // Insert the stuff that makes this page what it is require( "pg" . $page . ".inc" ); ?> <?php echo "$title"; ?>

">LAST

">NEXT

.jpg" alt= "" align=bottom>

">NEXT