website view libs/random-image.php @ rev 826

es: add Association (thanks Eduardo)
author Paul Issott <paul@slitaz.org>
date Mon Apr 25 00:26:09 2011 +0100 (2011-04-25)
parents c2ce9d254863
children 3b9816842566
line source
1 <?php
3 $total = "6";
4 $folder = "images/slideshow";
5 $start = "1";
6 $random = mt_rand($start, $total);
7 $name = $random . ".png";
9 echo "<img src=\"$folder/$name\" alt=\"$name\" />";
11 ?>