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? Quote Link to comment 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()? Quote Link to comment 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? Quote Link to comment 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? ??? Quote Link to comment 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] Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
shamuraq Posted May 8, 2009 Author Share Posted May 8, 2009 thanx anyway m8... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.