johnsmith153 Posted October 22, 2010 Share Posted October 22, 2010 SELECT field, (array of values from table 2) FROM $table1 t1 LEFT JOIN $table2 ON t1.id=t2.id ... is something like this possible? (where I return records from t1 in a LEFT JOIN, but also get an array of any of the fields/records from the table 2) Link to comment https://forums.phpfreaks.com/topic/216562-return-array-of-values-from-table-2/ Share on other sites More sharing options...
johnsmith153 Posted October 22, 2010 Author Share Posted October 22, 2010 Any idea? I have been searching Google and asking on other forums, but no luck. Maybe it can't be done. Link to comment https://forums.phpfreaks.com/topic/216562-return-array-of-values-from-table-2/#findComment-1125245 Share on other sites More sharing options...
johnsmith153 Posted October 22, 2010 Author Share Posted October 22, 2010 If it's impossible, please just say and I'll give in. Thanks. Link to comment https://forums.phpfreaks.com/topic/216562-return-array-of-values-from-table-2/#findComment-1125328 Share on other sites More sharing options...
johnsmith153 Posted October 22, 2010 Author Share Posted October 22, 2010 http://www.sitepoint.com/forums/showthread.php?p=4722454#post4722454 Link to comment https://forums.phpfreaks.com/topic/216562-return-array-of-values-from-table-2/#findComment-1125351 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.