Submerged Posted December 23, 2006 Share Posted December 23, 2006 Hey, I was just wondering if there was a way to merge 2 mysql results into one, without just moving all the data to PHP arrays and doing it from there. Thanks!-Alex Link to comment https://forums.phpfreaks.com/topic/31637-solved-merging-results/ Share on other sites More sharing options...
artacus Posted December 23, 2006 Share Posted December 23, 2006 UNION - will allow you to run one query on top of another basically. They need to have the same number and types of columns.A subquery will allow you to run a query and use the results in another query. Link to comment https://forums.phpfreaks.com/topic/31637-solved-merging-results/#findComment-146795 Share on other sites More sharing options...
Submerged Posted December 23, 2006 Author Share Posted December 23, 2006 One more quick question - I have union working, heres the example I'm working with. EDIT: Never mind, I found it :) Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/31637-solved-merging-results/#findComment-146996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.