Jump to content

Recommended Posts

I have a site that has music artists and when you click on an artist's name you are taken to there biography. I have this working fine but I want to be able list the albums they have done.

I have created a new table called albums with all the details and I need to join this table with the artists table, I have got it to the point where it's listing all albums but I'm struggling with seperating what album each artist has done.

 

This is my recordset I have now.

SELECT *
FROM blg_albums INNER JOIN blg_article_art ON id_art=album_id
ORDER BY album_title ASC

 

blg_article_art is the table with the artists details. I'm guessing this shouldn't be difficult as I kinda have it working to a point.

i think you want to join the artists to the album..

ie

SELECT * 
FROM blg_article_art LEFT JOIN blg_albums ON id_art=album_id
ORDER BY album_title ASC

 

have you got some sample data with an example of what you want to display

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.