amcpilot Posted May 8, 2011 Report 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
Jeff Posted May 9, 2011 Report Posted May 9, 2011 do a search for "RECENT BIDS" on these forums. You will be surprised what you can find by searching Quote
amcpilot Posted May 9, 2011 Author Report Posted May 9, 2011 I didn't mean the whole airlines Latest Bids, but just the pilots bids. (Their own bids) Thanks Quote
Nuclear Posted May 9, 2011 Report 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
amcpilot Posted May 9, 2011 Author Report 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
Nuclear Posted May 9, 2011 Report 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
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.