Wildone Posted December 27, 2013 Report Share Posted December 27, 2013 Hello Guys, I would like to ask you for help. After a few unsuccessful attempts, I gave up. Basically what I was trying to do is make a loop statement to get pilots current booked flights values of depicao and arricao, so they display next to each pilot name in the pilot roster. Can anybody help? 2 Quote Link to comment Share on other sites More sharing options...
freshJet Posted January 1, 2014 Report Share Posted January 1, 2014 Place this after the foreach($allpilots as $pilot) line: $bids = SchedulesData::getBids($pilot->pilotid); And then, where you want them displayed: foreach($bids as $bid){ echo $bid->depicao.' - '.$bid->arricao.'<br />'; } Quote Link to comment Share on other sites More sharing options...
Wildone Posted January 2, 2014 Author Report Share Posted January 2, 2014 This is it! Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.