I have two mysql_query statements posting queries to my db.
Is there anyway for me to merge their results?
I thought that mysql_query returned an array. But when I use the array_merge funtion, I'm getting back something that is not compatible in structure with the result returned from mysql_query.
in the example:
$foo = mysql_query($bar);
the value of $foo will not be handled in the same way as $foo in this example:
$foo1 = mysql_query($bar1);
$foo2 = mysql_query($bar2);
$foo = array_merge($foo1, $foo2);
or for that matter, $foo in this example:
$foo = $foo1 + $foo2;
Can anyone explain to me why? Or what I should be doing to append $foo2 to $foo1?