Nighthawk Posted July 6, 2011 Report Posted July 6, 2011 Hi, i want to display town Pilot´s Airport Loaction on the Frontpage.In the Admin Piots list i want to add it too. Is there an code to get the last pirep Location? Quote
Administrators simpilot Posted July 7, 2011 Administrators Report Posted July 7, 2011 $last_location = PIREPData::GetLastReports($pilotid); echo $last_location->arricao; Replace $pilotid with the variable you have that holds the pilotid. If the pilot has never filed a pirep it will be blank so you will need to add an if statement to show their hub or something if the $last_location variable comes back empty. Quote
ukmil Posted July 9, 2011 Report Posted July 9, 2011 care to share how you did it? i have tried and not managed it Quote
ukmil Posted July 12, 2011 Report Posted July 12, 2011 BUMP. does anyone know where to place the code above. my attempts to get this to work have failed 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.