Before you read the Tutorial about Banner Rotation, it is recommended that you read Variables in PHP Which includes information about Array's, and finally String Concatenation.
Creating The Script
Can also be used to rotate images
The first Example is really simple, and sufficient in most cases.
<?php $RandomNumber = rand(1, 10); echo '<img src="Images/' . $RandomNumber . 'img.jpg">'; ?>
The above asume that you already know the name of the images, simply name each image "1img.jpg, 2img.jpg, 3img.jpg" Etc. And then increase the random number accordingly.