Welcome Guest, Not a member yet? Register   Sign In
Merging data from 2 query
#2

[eluser]GabrieleMartino[/eluser]
To have the job done is possible.

One need to set the format of the result of the queries in

Code:
arr1 =$query->result_array();

after it merge the 2 array

Code:
array_merge (arr1,arr2);

and at end sort with multisort function of php in which I remind a note to see how to order

array in a specific key order in php manual.


Messages In This Thread
Merging data from 2 query - by El Forum - 11-15-2012, 09:17 AM
Merging data from 2 query - by El Forum - 11-16-2012, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB