Jump to content

Flight Bid's


amcpilot

Recommended Posts

Hello,

I have been trying to get the pilot's bids to show up on the side bar when they are logged in but having no luck, wonder if anyone could possibly help out?

an example would be:

AMC548 - LMML - EGLL

AMC549 - EGLL - LMML

Or

You have not bid on any flights.

Thanks!

Link to comment
Share on other sites

Something like this should work (note: untested):

<?php 
$bids=getBids(Auth::PilotID());
if($bids)
{
  foreach($bids as $bid)
  {
     echo $bid->code.$bid->flightnum.' - '.$bid->depicao.' - '.$bid->arricao.'<br />';
  }
}
else
{
  echo 'You have not bid on any flights.';
}?>

  • Like 1
Link to comment
Share on other sites

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...