Page 1 of 1

Problem with echoing out a loop with double queries

Posted: Fri Mar 18, 2011 10:10 am
by aIexi
Hello, I have 2 tables. One is wing, and another is wingusers which has information about which user is in which wing.

I am trying to echo out information about all wings including the leader of each wing.

The problem is, to echo out wing information is easier, but to echo out the commander, id have to do a query on EACH cell to find the commander of the wingid.

I don't know if anyone really understands what i'm asking. If so, coupld you please help? If not... would anyone mind looking at my problem with teamviewer?


Thanks,

Alexi

Re: Problem with echoing out a loop with double queries

Posted: Fri Mar 18, 2011 9:20 pm
by gully_mi_seh
at first look I would suggest to use usort() but I can be certain of nothing without seeing the code