Jump to content

merging two result arrays together


Jalz
 Share

This topic is 2312 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hey Guys, I've got two sets of results from two different queries. The fields in both tables are almost identical, the one field I need to access is. My question is before I continue to do the foreach loop to return the appropriate field, can I merge the two results together prior to my foreach loop? It would basically help condense some of the repetitive code. the only field I am interested in retrieving from both datasets is called dataPlot.

$dataset1 = $fm->newFindAllCommand('table_dataset1');

$result1 = $dataset1->execute();

$dataset2 = $fm->newFindAllCommand('table_dataset2');

$result2 = $dataset2->execute();

 

Many thanks

Jalz

Link to comment
Share on other sites

This topic is 2312 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.