Code Needed For Schedule Results

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.

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; ?>

Brilliant, works great. Thanks

what file are you ammending this in as this a wicked idea mate

it depends, where would you like it to be displayed?