Could someone show me an example on how do display one of three random images? Everytime I try I get some type of error. Thanks!
Hi Joe, Try this
$img_arr=array("a.gif","b.gif","c.gif"); mt_srand((double) time()*100000); $rnd_num=mt_rand(1,3)-1; $img_src=$img_arr[$rnd_num];
Cheers Ajay
If you are trying to use shuffle and getting an error, it may be because the server is a Solaris machine. There's a weird error I kept getting since my hosting folks are all Solaris all the time.