Hello,
I can't seem to get the logic of this one
I have a table of galleries, and a table of photos. I'm looping through the galleries table listing all these. But for each gallery, I want to check if there are any photos in the photos table attached to this gallery.
Eg
<% control getGalleries %>
<div><a href=''><strong>$title</strong></a>
<% control getImages %>
show an image + number of images in this gallery
<% end_control %>
</div>
<% end_control %>
Now, how to I tell the function getImages what the current ID from the getGalleries function is?