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

id from one table showing value from another

New Here ,
May 01, 2006 May 01, 2006

Copy link to clipboard

Copied

I have an article id (rs_comments.id_com) but I would like it to take this data and collect the value from another table.

I have joined the two tables with:
SELECT * FROM blg_comment_com INNER JOIN blg_article ON idart_com=id_art
WHERE valid_com=1
ORDER BY date_com DESC

rs_comments.idart_com needs to be equal to rs_comments.id_art displaying the value from rs_comments.title_art

How would I go about doing this. There only seems to be an option in DW to do this with a dynamic list/menu but I just want to display the text without option to change it.

Any help much appreciated.

TOPICS
Server side applications

Views

197
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 ,
May 02, 2006 May 02, 2006

Copy link to clipboard

Copied

LATEST
i was stupid. The answer was staring me in the face. No wonder no-one bothered to reply...

Votes

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