Welcome Guest, Not a member yet? Register   Sign In
Merging arrays from different queries
#5

[eluser]Nick_MyShuitings[/eluser]
[quote author="juanvillegas" date="1283453828"]Podrias tambien ahorrarte todo eso y aprovechar MySQL: http://www.mysqltutorial.org/sql-union-mysql.aspx[/quote]

Translation: You could save yourself all that mess and just take advantage of MySQL http://www.mysqltutorial.org/sql-union-mysql.aspx.

This is very good advice on one condition: Check out this line from the doc:

Quote:The column list of each individual SELECT statement must have the same data type.

Which I am not sure if that works in their specific instance... so union might be a total win, but might be not feasible.

JanDoToDo: could you post the clean code you wrote with array_merge_recursive, so that future readers will ignore my hideous latenight example.


Messages In This Thread
Merging arrays from different queries - by El Forum - 08-30-2010, 08:16 AM
Merging arrays from different queries - by El Forum - 09-02-2010, 12:49 AM
Merging arrays from different queries - by El Forum - 09-02-2010, 01:51 AM
Merging arrays from different queries - by El Forum - 09-02-2010, 07:57 AM
Merging arrays from different queries - by El Forum - 09-02-2010, 08:58 AM
Merging arrays from different queries - by El Forum - 09-02-2010, 12:39 PM
Merging arrays from different queries - by El Forum - 09-02-2010, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB