Jon Posted November 11, 2011 Report Share Posted November 11, 2011 Hi All, So many people have been asking me for this after it's been on my site.Displays a small text-based output that shows the pilots callsign and name. You can adapt as you wish. PLEASE NOTE: The code may not be as short as it could be, just as long as that because I edited it from the live flights board. Enjoy! Jon <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $flight) { if($flight->client == 'FSACARS') {$plane = OperationsData::getAircraftInfo($flight->aircraft);} else {$plane = OperationsData::getAircraftByReg($flight->aircraft);} ?> <?php echo $flight->flightnum;?> - <?php echo $flight->pilotname;?> <br/> <?php } } else { ?> No Flights in Progress! <?php } ?> 2 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.