Greetings,
My first post here. I'm learning PHP as rapidly as I can, but I still have some basic questions.
OK, I'm trying to run the Gallerific gallery script on my site. The way Gallerific works, it looks at an unordered list to populate the gallery. In each list item, it grabs a main image and a thumbnail image.
I have folders that are created dynamically as a user uploads photos. There is a main folder and a "thumbs" sub-folder. That's all taken care of before the script comes into play
I need to loop through both the main images and the thumbnails at the same time, and call each one in the list items.
I know this code must be wrong, but I'll post it as a starting place. Can someone help me figure out how to do this correctly? Maybe I should not even be using foreach?
<div id="thumbs" class="navigation">
<ul class="thumbs noscript">
<?php foreach($cck->get( 'property_listing_images' )->value as $large){
foreach($cck->getValue( 'property_listing_images' )->value as $thumb1){ ?>
<li>
<a class="thumb" href="images/<?php echo $large->value; ?>" title="Title X">
<img src="images/<?php echo $thumb1->value; ?>" alt="Title X" />
</a>
</li>
</ul>
<?php } ?>
<?php } ?>
</div>
Thank you ahead of time for your help!
Matthew