t_bergman Posted January 27, 2017 Report Posted January 27, 2017 I have a module I am building where I have extracted the pilots current location based off of this code: $last_location = PIREPData::getLastReports($pilotid,1, PIREP_ACCEPTED); However, this will only output the ICAO of the airport and not its actual name. Is it possible to get phpvms to pull the full airport name as it is inside the airports table of the database? Quote
web541 Posted January 27, 2017 Report Posted January 27, 2017 You could re-arrange the query, or you could just do it the easy way... $last_location = PIREPData::getLastReports($pilotid,1, PIREP_ACCEPTED); $last_location_apt = OperationsData::getAirportInfo($last_location->arricao); $last_location_name = $last_location_apt->name; echo $last_location_name; Haven't tested it, but it should work 1 Quote
t_bergman Posted January 27, 2017 Author Report Posted January 27, 2017 web541, Thanks a ton, I was thinking about it from a whole different approach. 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.