close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Help with nested repeat region

Thread began 6/16/2013 6:52 am by iainmacdonald331081 | Last modified 6/18/2013 11:16 am by iainmacdonald331081 | 3792 views | 9 replies

iainmacdonald331081

Help with nested repeat region

I've been playing around with this for a while, but haven't been able to get it right. Have been looking at DA's repeating table and Tom Muck's nested region behaviour, but haven't got it to work with either. Plus I'm a little unsure if I need one or two SQL queries.

Anyway, this is the page that is closest, but has no nested repeat applied:

http://www.goodsafariguide.net/itineraries_beta/index501.php

Basically where there are two instances of 'Test Itinerary' (one for each of Tanzania and Kenya), I just want one instance to list Tanzania and Kenya together.

The table structure is:

Tables:

Itineraries
ItineraryID, Itinerary etc

activities
ActivityID, Activity, etc

ItineraryActivities
ItineraryID, ActivityID

And currently one SQL query:

SELECT * FROM itineraries INNER JOIN ItineraryActivities ON ItineraryActivities.ItineraryID = itineraries.ItineraryID INNER JOIN activities ON activities.ActivityID = ItineraryActivities.ActivityID WHERE Publish_GSG = 'Yes' AND Category_Order = 1

(Category_Order refers to countries in the activities table)

Basically I just need this code to repeat:

<table>
<tr>
<td><img src="../../itinerary_resources/icons/<?php echo $row_SecurityAssisttradeusers['Icon']; ?>" width="30" height="20" alt="Country Flag" /></td>
<td><h2><?php echo $row_SecurityAssisttradeusers['Activity']; ?></h2></td>
</tr>
</table>



Rather than it display duplicate entries for itineraries where more than one country is linked to the itinerary.

Hope that makes sense - I've attached a copy of that file.

Thanks,

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...