Hello,
I have a field (upload) which allows up to 4 uploads (in the same field)
Is there anyway I can display the 2nd upload (image) only?
For example:
<?php foreach ($tableRecord['photo'] as $upload): ?>
img src="<?php echo $upload['urlPath'] ?>" />
<?php break; ?>
<?php endforeach ?>
That above code, using the BREAK will display the first upload, and then stop i.e. display upload 1.
Can I make it display upload 2... maybe either through an ONLY DISPLAY 2 (instead of a foreach), or a foreach, that STARTS at 2 and then stop with BREAK.
Hope that makes sense
Cheers
Rob
PS I know I can do through by separating uploads into separate fields (i.e. photo_1, photo_2, photo_3, photo_4) as then I just set the upload to display, but I won't want to have to separate the uploads...!