I'm looking for a Random image solution (PHP/HTML) where I have a page with a table (say 5 x 5), and I want a random image displayed in each table cell. There are a couple of caviats:
1) I don't want duplicate images in the table
2) I want the photos to be thumbnails, and have them link to the source file
3) I'm hoping to have a scalable solution so I can have tables bigger than 5 x 5 without duplicate files, and without a ton of manual labour to add new pictures to the mix.
Can anyone point me to an existing documented solution?
Thanks,
Dave
Looking for Random Image Solution
Moderator: General Moderators
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
Off the top of my head, you'd have your thumbs in an array and use shuffle or maybe array_rand to pick out the thumbs to display.
Search this forum for "random image", this has been discussed before and you should turn up a few ideas.
Search this forum for "random image", this has been discussed before and you should turn up a few ideas.