Jeff Posted December 22, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted December 23, 2011 Administrators Report Share Posted December 23, 2011 put 'aa' in quotes Quote Link to comment Share on other sites More sharing options...
Jeff Posted December 23, 2011 Author Report Share 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 Link to comment Share on other sites More sharing options...
Moderators Kyle Posted December 23, 2011 Moderators Report Share 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 Link to comment Share on other sites More sharing options...
Jeff Posted December 23, 2011 Author Report Share Posted December 23, 2011 How do you add it? 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.