<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/price<?php $random = rand(1,8); echo $random; ?>.jpg" height="114px" width="156px"/> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/price<?php $random = rand(1,8); echo $random; ?>.jpg" height="114px" width="156px"/> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/price<?php $random = rand(1,8); echo $random; ?>.jpg" height="114px" width="156px"/> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/price<?php $random = rand(1,8); echo $random; ?>.jpg" height="114px" width="156px"/>
I do this 4 times in total, and there are 8 images for them to choose from. At the moment it works, but I was wondering if there was any way I could stop the images from duplicating?
Cheers

New Topic/Question
Reply




MultiQuote






|