shamuraq Posted May 8, 2009 Share Posted May 8, 2009 Hi ppl, For this script: <? $rand = rand(); for ($e=0; $e<$rand; $e++){ echo '<img src = "www.mydomain.com/image.gif"/>; } How so i store the images into arrays so that i may use "count" and reflect a number of randomised name for each image to be written on top of each image? Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/ Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 Well you have $e and $rand. Why do you need to use count()? Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829064 Share on other sites More sharing options...
shamuraq Posted May 8, 2009 Author Share Posted May 8, 2009 ur right. so how do i isolate each image reflected as a var? Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829076 Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 ur right. so how do i isolate each image reflected as a var? What? ??? Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829079 Share on other sites More sharing options...
shamuraq Posted May 8, 2009 Author Share Posted May 8, 2009 this is what i intend to do... Now i know how to randomise number of image from a single image I also know how to randomise the alphabet with the number of alphabets from the number of image produced. I just dun know how to tie them together to produce the question. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829090 Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 What do you mean randomize the number of images from a single image? If you only have one, how do you randomize it? Just so you know, $rand = the number of images produced. Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829100 Share on other sites More sharing options...
shamuraq Posted May 8, 2009 Author Share Posted May 8, 2009 thanx anyway m8... Link to comment https://forums.phpfreaks.com/topic/157299-solved-tabulating-randomised-image-into-arrayvar/#findComment-829250 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.