Learned about Many-to-Many Relationships in MySQL. Realized I already knew all of it, but what I really looked for was how to combine the joined tables in PHP. I really need ELI5 for those things!
Tomas Woksepp
Author
Do you happen to know much about this? I feel like my solution is too hacky for being the "official" solution to what I need.
Tomas Woksepp
Author
Not really sure what an ORM is, but I found the easiest way was to use GROUPCONCAT together with JSONOBJECT. After the query I instantly json_decode the data to make it nice little array! :)
I don't - I just use an orm which is just a fancy library to access databases without writing sql.
Please sign in to leave a comment.