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

Recordset question involving table relationships

New Here ,
Mar 30, 2008 Mar 30, 2008
I set up two tables for a photo gallery. One for the gallery details and the other for photo details.

In my gallery index page, I want it to list the galleries available for choosing and a thumbnail for that gallery.

I made up the recordset that combined the galleryID that it is both tables and made a repeat region. I was hoping it would repeat teh gallery's (only 3 of them), but it ended up repeating all the photos (11 of them) down the page.

I know theres gotta be a quick fix for this in the sql right?
TOPICS
Server side applications
253
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
New Here ,
Mar 30, 2008 Mar 30, 2008
LATEST
Here's the Sql that I have now....:

SELECT galleries.galleryID, galleryTitle, galleryDate, galleryDesc, photos.thumbSrc
FROM galleries, photos
WHERE photos.galleryID = galleries.galleryID
ORDER BY galleryDate DESC
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