Jeff Posted December 22, 2011 Report Posted December 22, 2011 I am in a slight predicament. I am trying to display total hours flown for a specific airline. The code I am using is not displaying the correct output for it. It keeps displaying my total VA hours instead of just the individual Airline I want. Here is the code I am using <?php echo StatsData::TotalHours(AA); ?> If I use these codes <?php echo StatsData::TotalPaxCarried(AA); ?> <?php echo StatsData::TotalMilesFlown(AA); ?> <?php echo StatsData::totalschedules(AA); ?> <?php echo StatsData::TotalFlights(AA); ?> These all show up correctly. Any idea why the Total Hours one isn't showing correctly? Quote
Administrators Nabeel Posted December 23, 2011 Administrators Report Posted December 23, 2011 put 'aa' in quotes Quote
Jeff Posted December 23, 2011 Author Report Posted December 23, 2011 It's still the same. <td style="background-color:#CCCCCC; color:#000000"><div align="center"><?php echo StatsData::TotalHours("AA"); ?></div></td> Quote
Moderators Kyle Posted December 23, 2011 Moderators Report Posted December 23, 2011 put 'aa' in quotes Nabeel and Jeff, I took a look at the Stats Data Class and it seems there is no function hours per by airline. There is just only the total VA hours, not per airlines. Quote
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.