How to merge data from 2 tables with MySQL
问题 I have 2 tables set up something like below, what MySQL querys do I need to use to return assoc arrays of each entry along with it's associated fields? I've tried various JOINs but they all return a result for every item in the second table. Ultimately I want a parent array with one child array for each item in the first table. Each child array would contain the name from table A along with all the fields that belong to it from table B where B.entryID = A.ID. A ID |Name |Created 1 Jeff 2013