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.

0 Likes
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! :)

0 Likes

I don't - I just use an orm which is just a fancy library to access databases without writing sql.

0 Likes

ManyToMany relations are funnnnn /s. Are you using an ORM?

0 Likes

Please sign in to leave a comment.