[eluser]kgill[/eluser]
I think I see what you're trying to do, two columns of unrelated data sitting next to each other in a table. Is there a specific reason why you need to use a table instead of something simpler like outputting the results to separate divs placed next to each other?
If the table has to be there your best bet is probably nested tables, failing that you could do some really ugly coding and ditch the associative arrays in favor of plain 0 based ones - that way you can use the index of the one result set you're looping through to output the results of the other. Of course that brings a host of other code needed, count each result and see if one is bigger, use the larger one in your foreach, add conditional logic to make sure the index exists in the other before you attempt to reference it, etc.
- K