QUOTE(Toungy @ Oct 16 2007 at 04:42 PM)

As in display a random image each time someone views a page?
You can display a random image using this script:
CODE
<?php
$pages = array('img1.png', 'img2.png', 'img3.png');
echo '<img src="'.$pages[rand(0,count($pages)-1)].'" />';
?>
can i specifiy the image that will be next in line? and can i use this php code on the forum??? in my signature?
test:
<?php
$pages = array('http://img165.imageshack.us/img165/6236/tshirtmarmyblack240newqi6.jpg', 'http://img165.imageshack.us/img165/8425/tshirtmgunheadblue240neyh7.jpg', 'http://img100.imageshack.us/img100/9000/tshirtmipwnblack240newbz7.jpg');
echo '<img src="'.$pages[rand(0,count($pages)-1)].'" />';
?>