Jump to content

Getting airport country names


Recommended Posts

Guest chikolol
Posted

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?

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...