Jump to content

Recommended Posts

Posted

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?

  • Like 2
Posted

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 />';
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...