I have a database set up that displays a random set of 4 numbers from one to fifty. I have an image folder on the site with 50 images numbered one to fifty. What I want to be able to do is when the 4 numbers are called I want to be able to display the images that corispond to those 4 numbers.
It Is a sports results database. 4 numbers are pulled out as results depending on the date that is entered,so results are not random but already entered in number form. Sorry I should not of used the word RANDOM in my post.
well something like this : <?php echo '<img src="http://www.site.com/images/'.$row["number"].'.jpg">'; ?> PHP: Should do the trick with a bit of modification.