Jump to content

Code Needed For Schedule Results


Mickey

Recommended Posts

Can someone please help? I have 2 active airlines on my VA and need a code to show what airline does the route.

Airline: AUR

Flight No: AUR002

Departure: LFLS - 14:30 Arrival: EGJB - 15:20

Equipment: ATR72-500 (G-VZON) Distance: 404.633nm

Days Flown: S

Route: DANBO UT133 AMORO UT140 PIBAT UM976 OKRIX UH10 AMODO UM729 RESMI UN491 PIGOP UN160 CAN

By Airline i have the Airlines code but want it to display its name if possible.

Link to comment
Share on other sites

You can display the airline by name like this:

<?php
$aname = OperationsData::getAirlineByCode($route->code);
?>

Make sure you change $route->code to the right variable used in your foreach statement (e.g. $schedule->code)

Then this should be available

<?php echo $aname->name; ?>

Link to comment
Share on other sites

  • 3 weeks later...

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...