Gabe
Gabe

Reputation: 83

Database Join functionality implements in PHP

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

Answers (1)

Bhargav Sarvepalli
Bhargav Sarvepalli

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

Related Questions