Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Filter based on repeat region value

Guest
Feb 17, 2007 Feb 17, 2007
I have a repeat region which outputs a list of lessons. Each lesson has a set of details.

I have 2 record sets

rslessonName (which contains the following columns) id, courseID, lessonID, lessonName

rslessonDetails (which contains the following columns) id, lessonID, description_1, description_2....to description_25

The repeat region is filtered by a URL Parameter courseID and is set to ascending order based on lessonID

so that part works fine

what I want to do is take the value lessonID during the repeat region and have the rslessonDetails record set display.

I have tried all types of filtering ... but I can't get anything to work

any suggestions???
TOPICS
Server side applications
335
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 18, 2007 Feb 18, 2007
cdembek wrote:
> I have a repeat region which outputs a list of lessons. Each lesson has a set
> of details.
>
> I have 2 record sets

You should join the tables to create a single recordset.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 19, 2007 Feb 19, 2007
Thanks for info.. I am going to do a search to learn more about joining tables

Any chance you can provide an example??
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 19, 2007 Feb 19, 2007
cdembek wrote:
> Thanks for info.. I am going to do a search to learn more about joining tables
>
> Any chance you can provide an example??

The syntax for joining tables depends on which database you're using.
However, a simple example is this:

SELECT * FROM table1, table2
WHERE table1.id = table2.id

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 21, 2007 Feb 21, 2007
LATEST
Dave thanks for the help..
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines