amcpilot Posted May 8, 2011 Report Share Posted May 8, 2011 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! Quote Link to comment Share on other sites More sharing options...
Jeff Posted May 9, 2011 Report Share Posted May 9, 2011 do a search for "RECENT BIDS" on these forums. You will be surprised what you can find by searching Quote Link to comment Share on other sites More sharing options...
amcpilot Posted May 9, 2011 Author Report Share Posted May 9, 2011 I didn't mean the whole airlines Latest Bids, but just the pilots bids. (Their own bids) Thanks Quote Link to comment Share on other sites More sharing options...
Nuclear Posted May 9, 2011 Report Share Posted May 9, 2011 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.'; }?> 1 Quote Link to comment Share on other sites More sharing options...
amcpilot Posted May 9, 2011 Author Report Share Posted May 9, 2011 that didn't work I am getting this error... Fatal error: Call to undefined function getBids() in /home/**/public_html/**/lib/skins/amc/layout.tpl on line 115 Thanks Quote Link to comment Share on other sites More sharing options...
Nuclear Posted May 9, 2011 Report Share Posted May 9, 2011 Oops. It should be: $bids=SchedulesData::getBids(Auth::PilotID()); That's what I get for posting when I first wake up 1 Quote Link to comment Share on other sites More sharing options...
amcpilot Posted May 9, 2011 Author Report Share Posted May 9, 2011 Thanks a lot! 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.