Random banner
Okay heres how to make a page which shows random banners everytime you visit the page (or reload it).
PHP Code
<?
//Create an array so we can sort the banners out in order of 1, 2 and 3
$banners= array("banner1.gif", "banner2.gif", "banner3.gif");
//Create a random number to use later on (must be from 0 to 2 if ur using 3 banners
$randomnumber= rand(0, 2);
//Now time to make the random image
echo "<img src='$banners[$randomnumber]'>";
?>
Thanks, please post comments and report any bugs or mistakes you find