One thing I have never quite understood is arrays which is lame because they are the basic thing everyone learns. ANways. An example of what I want to do is here
http://www.clubretro.net/example.php
the current code is simple but it is static
$intro = array("enter01.jpg", "enter02.jpg", "enter03.jpg", "enter04.jpg", "enter05.jpg", "enter06.jpg", "enter07.jpg", "enter08.jpg", "enter09.jpg", "enter10.jpg");
$num = rand(0,9);
echo "<img src=\"images/enter/$intro[$num]\" border=\"0\" >";
now what I want to do is pull the image files from a database put them into that array so upon reload a random image will appear.
the database pull will be.
$sql="SELECT * FROM $tbl_name WHERE featured ='yes'";
the column name with the images is .... 'image'
SO what I need is:
(1) the array to be dynamic with the values for the photos changing depending on what photos are marked featured.
(2) and the number of images cycling through $num = rad(0,9) to change according to how many rows are pulled from the database.
I hope that makes sense... Any help you could provide would be great!