Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Thank you very much! It's exactly the code I was looking for! Lada PS: my previous ungly code is half long now :) James Ausmus wrote: On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: Hi list! I read data from 2 databases and for the purpose of displaying the informatio

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
nope, merge is not doing what I want and also using FEDERATED engine in mysql I think is not the simplest way to go or even not appropriate. Anyhow, I did it an ugly way ( tablearray follows

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Ladislav Andel wrote: Miles Thompson wrote: array_merge() function? If your db is MySQL, look at this thread, Google being your friend: http://lists.mysql.com/mysql/204616 Thanks for quick reply. Array_merge doesn't do what I want. And also those databases are at different loca

Re: [PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
es. I found something here http://www.linux.com/articles/52390 but not sure if it is what I want but will read up. Thanks, Lada Cheers - Milesx On 10/16/07, Ladislav Andel <[EMAIL PROTECTED]> wrote: Hi list! I read data from 2 databases and for the purpose of displaying the informatio

[PHP] combining 2 arrays

2007-10-16 Thread Ladislav Andel
Hi list! I read data from 2 databases and for the purpose of displaying the information at my web interface as one piece I need to combine the data into one array first.. Here is my problem: Firstly, it reads from first DB and get this array: (it's a sum of server names in table) arrayDB1 =