Problem with echoing out a loop with double queries

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aIexi
Forum Newbie
Posts: 12
Joined: Wed Mar 16, 2011 10:46 pm

Problem with echoing out a loop with double queries

Post 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
gully_mi_seh
Forum Newbie
Posts: 14
Joined: Fri Mar 18, 2011 8:48 pm

Re: Problem with echoing out a loop with double queries

Post by gully_mi_seh »

at first look I would suggest to use usort() but I can be certain of nothing without seeing the code
Post Reply