Reputation: 83
what is the best way to realize the SQL-Join functionality in PHP. I need that because I have to join "Tables" data (an Object or array of arrays, etc) from databases on different hosts.
Any Ideas better than looping over all rows?
Note: It' shouldn't be in PHP :)
Upvotes: 0
Views: 46
Reputation: 300
Only a suggestion, if your key is the same, then create a multidimensional array with the key as your index. and then assign any data accordingly. like array[key][valuefromtable1]=array(); array[key][valuefromtable2]=array();
Upvotes: 1