Guest chikolol Posted January 29, 2010 Report Share Posted January 29, 2010 sorry to post this again, i know i have posted this before but no one answers me, how can i call for the country name of the airport to show in schedules details along with the airport name, i know something like $schedules->name pulls our the airport name but how about $schedules->country would that work? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 29, 2010 Administrators Report Share Posted January 29, 2010 $airport = OperationsData::getAirportInfo(your icao code); echo $airport->country; Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted January 29, 2010 Report Share Posted January 29, 2010 Or this: Add this (above where the departure/arrival airports are): <?php $depairport = GetAirportInfo($schedule->depicao); ?> <?php $arrairport = GetAirportInfo($schedule->arricao); ?> Departure Airport Country: <?php echo $depairport->country; ?> Arrival Airport Country: <?php echo $arrairport->country; ?> For Schedule Results make $schedule into $route and for briefing leave it the way it is Quote Link to comment Share on other sites More sharing options...
Guest chikolol Posted January 31, 2010 Report Share Posted January 31, 2010 thank you soo much guys 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.