[quote:805acf6352="Cali"]COOL it changes!! how'd ya do it??

Hugz[/quote:805acf6352]

Here's how ya do it..I wrote this from scratch last night...

The PHP code
[code:1:805acf6352]
&lt;?
$imgnum = rand&#40;1, 17&#41;;
if &#40;file_exists&#40;$imgnum.&quot;.jpg&quot;&#41;&#41; &#123; $type = &quot;jpg&quot;; $type2 = &quot;jpeg&quot;; &#125;
else &#123; $type = &quot;gif&quot;; $type2 = &quot;gif&quot;;&#125;
if &#40;$type == &quot;gif&quot;&#41; &#123; $im = imagecreatefromgif&#40;$imgnum.&quot;.gif&quot;&#41;; &#125;
else &#123; $im = imagecreatefromjpeg&#40;$imgnum.&quot;.jpg&quot;&#41;; &#125;
header&#40;&quot;Content-type&#58; image/&quot;.$type2&#41;;
if &#40;$type == &quot;gif&quot;&#41; &#123; imagegif&#40;$im&#41;; &#125;
else &#123; imagejpeg&#40;$im&#41;; &#125;
imagedestroy&#40;$im&#41;;
?&gt;
[/code:1:805acf6352]

You'll notice the 17 in [i:805acf6352]$imgnum = rand(1, [b:805acf6352]17[/b:805acf6352]);[/i:805acf6352]
This is how many images are in the directory. So, you will need to change this to however many images are in your directory. Note that they must also be in the same directory as the PHP file...You must also rename your images to numbers (1.gif, 2.gif, 3.jpg)

It only supports gif and jpeg format images...I could change this if needed..but it shouldn't be needed...

Then you have to add the url to the PHP file to the server's MySQL database. Since none of us (that I know of) have access to the MySQL DB, I had to have Matt go in and alter it manually using phpMyAdmin.

Here's a version where you just set the [i:805acf6352]$numimgs[/i:805acf6352] variable to the number of images.
[code:1:805acf6352]
&lt;?
$numimgs = 17; //the number of images
$imgnum = rand&#40;1, $numimgs&#41;;
if &#40;file_exists&#40;$imgnum.&quot;.jpg&quot;&#41;&#41; &#123; $type = &quot;jpg&quot;; $type2 = &quot;jpeg&quot;; &#125;
else &#123; $type = &quot;gif&quot;; $type2 = &quot;gif&quot;;&#125;
if &#40;$type == &quot;gif&quot;&#41; &#123; $im = imagecreatefromgif&#40;$imgnum.&quot;.gif&quot;&#41;; &#125;
else &#123; $im = imagecreatefromjpeg&#40;$imgnum.&quot;.jpg&quot;&#41;; &#125;
header&#40;&quot;Content-type&#58; image/&quot;.$type2&#41;;
if &#40;$type == &quot;gif&quot;&#41; &#123; imagegif&#40;$im&#41;; &#125;
else &#123; imagejpeg&#40;$im&#41;; &#125;
imagedestroy&#40;$im&#41;;
?&gt;
[/code:1:805acf6352]

that's it...