Hey Everyone,
I am just getting started with some PHP/MySQL work and have come to a roadblock.
I am going to be working on sites for bands and I want them to be able to update their site with their all their album information…
I set up two tables in my database one for the albums and one for the tracks
Albums :
Album_id
Album_title
Tracks :
Track_id
Track_album_id (this will go with the Album_id in the Albums table)
Track_title
What I’d like to do is display on a page the albums with the corisponding tracks below them like so…
My First Album
Track 1
Track 2
Track 3
My Second Album
Track 1
Track 2
Track 3
Track 4
I am pretty sure I should be using a while loop but cant figure out how to set that up so that if any new albums/tracks are added they will automatically be set up on the page.
Any help is extremely appreciated!
Thanks