The above code works great but how do I solve this?
I have 4 tables called prefix, location, owner, collection. All 4 tables have a id and a name like this: prefix_id, prefix, location_id, location, owner_id, owner, collection_id, collection
I have another table called connect_prefix. The table connect_prefix have fields that are called prefix_id, location_id, owner_id, collection_id, but I need the names from the prefix, location, owner, collection tables.
Can the same code be used as in the first example? I have tried but it does not work. I start to understand how it works but I'm not there yet.