I have a MySQL database in which each row represents an episode of a podcast. I would like to include show notes for each episode and therefore need to be able to extract multiple links per row via PHP.
What would be the best data field to achieve this? I’m thinking that including the links via a linked table may be the only way to do this, but if anybody knows a simpler way I’d love to hear about it.
I would definitely recommend using a new table (
podcast_link) because the number of links per podcast is flexible. Adding atextfield to thepodcasttable wouldn’t be very efficient due to the parsing of the links when you want to display them.This will also allow you to e.g. count the number of links per podcast, so you can display “Show related links (4)” and you can add more fields to the links, so that you don’t only display the links, but also a title for the link. Especially going forward you might want to add more information per link.