Re: [Jake] Displaying uploaded images in my weeb page
Jake,
I am not having a problem displaying the images using the forEach loop process. My issue centers around being able to display selected image, rather than all of them from the loop.
For example, if I want to display the 2nd and 4th image being returned in one location and the 1st and 3rd in another location there is not an easy way to do this.
I would like to have the ability to have the upload record detais set to a unique varible as they are returned by the forEach loop. Instead of dealing with the return:
img src="<?php scho $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] alt="" /><br>
is there some way to get:
image_1_src="<?php scho $upload['urlPath'] ?>"
image_1_width="<?php scho $upload['width'] ?>"
image_1_height="<?php echo $upload['height'] ?>"
image_1_alt="" />
image_2_src="<?php scho $upload['urlPath'] ?>"
image_2_width="<?php scho $upload['width'] ?>"
image_2_height="<?php echo $upload['height'] ?>"
image_2_alt="" />
image_3_src="<?php scho $upload['urlPath'] ?>"
image_3_width="<?php scho $upload['width'] ?>"
image_3_height="<?php echo $upload['height'] ?>"
image_3_alt="" />
...
This would allow the ability to use any of the uploads anywhere within the page.
CMSB Rocks!
Thanks,
Kurt