Guest chikolol Posted January 29, 2010 Report 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
Administrators simpilot Posted January 29, 2010 Administrators Report Posted January 29, 2010 $airport = OperationsData::getAirportInfo(your icao code); echo $airport->country; Quote
AFVA | Mitchell Posted January 29, 2010 Report 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
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.