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

issues with last post

New Here ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

hi, i am setting up the topic list for my forum, and i want to show when the last post was. I have a table for topics, and a table for responses. These tables are linked together.

On my topic list page I have a query

SELECT * FROM topics
LEFT OUTER JOIN topic_messages
ON topics.id_topics=topic_messages.id_topics_messages

However when i output the query it is repeating the topics in relation to how many many messages there have been for that specific top...
The only way I have found to display the topics once is to remove the join in the query and have
SELECT * FROM topics

But this means I can no longer draw the "last post" info from the messages table...

Any ideas of how to get round this???Cheers
TOPICS
Advanced techniques

Views

274

Translate

Translate

Report

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

correct answers 1 Correct answer

LEGEND , Dec 30, 2006 Dec 30, 2006
read the cfml reference manual. Specifically, read about the cfoutput tag and it's group attribute. If you don't have a manual, google <cfoutput>

Votes

Translate

Translate
LEGEND ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

read the cfml reference manual. Specifically, read about the cfoutput tag and it's group attribute. If you don't have a manual, google <cfoutput>

Votes

Translate

Translate

Report

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 ,
Dec 30, 2006 Dec 30, 2006

Copy link to clipboard

Copied

LATEST
that it......much appreciated for help

cheers

Votes

Translate

Translate

Report

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
Resources
Documentation