Mickey Posted April 16, 2016 Report Share Posted April 16, 2016 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. Quote Link to comment Share on other sites More sharing options...
web541 Posted April 16, 2016 Report Share Posted April 16, 2016 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; ?> Quote Link to comment Share on other sites More sharing options...
Mickey Posted April 16, 2016 Author Report Share Posted April 16, 2016 Brilliant, works great. Thanks Quote Link to comment Share on other sites More sharing options...
Michael2015 Posted May 8, 2016 Report Share Posted May 8, 2016 what file are you ammending this in as this a wicked idea mate Quote Link to comment Share on other sites More sharing options...
web541 Posted May 8, 2016 Report Share Posted May 8, 2016 it depends, where would you like it to be displayed? 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.