well there are a few ways of doing it. You can either use a Database to store image location or just name the images in order, so image1.jpq, image2.jpg and so forth.
<img
src="/strips/<?php echo $ID+1;?>.jpg" />
the example above is for entering PHP into a HTML page. probebly a little easier then doing HTML into a PHP page.
PS. if you do not want to code all of this yourself, check out http://phpcomic.com they use to cost money but now are Freeware.