Nighthawk Posted July 6, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 7, 2011 Administrators Report Share 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 Link to comment Share on other sites More sharing options...
Nighthawk Posted July 8, 2011 Author Report Share Posted July 8, 2011 Where i must write it ??? Quote Link to comment Share on other sites More sharing options...
Nighthawk Posted July 9, 2011 Author Report Share Posted July 9, 2011 Ok thanx i have it now... Quote Link to comment Share on other sites More sharing options...
ukmil Posted July 9, 2011 Report Share Posted July 9, 2011 care to share how you did it? i have tried and not managed it Quote Link to comment Share on other sites More sharing options...
ukmil Posted July 12, 2011 Report Share Posted July 12, 2011 BUMP. does anyone know where to place the code above. my attempts to get this to work have failed 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.