View Single Post
  #1 (permalink)  
Old 07-26-2008, 09:25 AM
niky niky is offline
Novice
Join Date: Jul 2008
Posts: 3
iTrader: (0)
niky is on a distinguished road
PHP include help!

Ok i have this working script now thanks to a member here:
PHP Code:
<?
//populate following array with image urls
$images = Array(
"http://www.xninelivesx.com/header_1.jpg",
"http://www.xninelivesx.com/header_2.jpg",
"http://www.xninelivesx.com/header_3.jpg",
"http://www.xninelivesx.com/header_4.jpg",
"http://www.xninelivesx.com/header_5.jpg"
);
$random_image $images[rand(0,count($images)-1)];
echo 
"<img src=\"$random_image\">";
?>
that works perfect.. now i need to use it as an include on my forums.. please give me the right code!
thanks,
___________________
b&b Edinburgh Lighter Belt Buckle

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by TeraTask : 07-26-2008 at 08:53 PM. Reason: Added code tags -- please use them.
Reply With Quote