Earlier I was taught how to select and concat in a query (Used that to add some text to some image urls).
However, I am quite stumped now. The next thing I need to tackle is “grabbing” each individual cards url. Unfortunately the url is not stored in the database, instead it is made up by pulling the corresponding category, sub category, and then the cards name.
I know to use
select name from cards
but then after that I am pretty much lost.
There are 3 main tables I have narrowed it down to.
- Card_categories contains
category_id_card_id,card_category_id. - Categories contain
category_id,name. - Cards contains
card_idand other card related information.
I do know the url structure needs to be www.amyadele.com/name(category)/sub category/name (from cards)
Perhaps reading up on the JOIN examples would help you: http://mysqljoin.com/joins/inner-join-tutorial/