Having only a little previous experience working with databases and without formal education with them, I am a little fixated on how to model this (and get the data that I need from it in PHP). This is what I am trying to simulate:
For each element on my site, it is allowed to have several tags, such as file, download, php, recursive, etc. However, tags are reused, I can have two different elements, each of which can have a php tag.
I tried to find out how to do this, and is he experiencing experience or something else that I don’t know, but I can’t understand the concept. Apparently you need a middle table that ties them together?
Also, as soon as I have this relationship and certain tables, how will I do things like: - Get all the elements with a specific tag? - Get all the tags that one element has?
Thank you for your help, also, if someone could list further readings on this subject to strengthen my understanding of the concept, which would be great.
source
share