By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

display random set of pictures on page

P: 74
Hi,

How do i do a random picture selector for a page in php. Basically i want to pic 3 pictures from a pool of 40 and display these on screen.

Cheer,
Philleep
May 17 '07 #1
Share this Question
Share on Google+
1 Reply


Motoma
Expert 2.5K+
P: 3,235
Assign each image a unique number. Then use the rand() function to pick three of them.

Hi,

How do i do a random picture selector for a page in php. Basically i want to pic 3 pictures from a pool of 40 and display these on screen.

Cheer,
Philleep
May 17 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.