Jump to content

Recommended Posts

Posted

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?

Posted

It's still the same.

<td style="background-color:#CCCCCC; color:#000000"><div align="center"><?php echo StatsData::TotalHours("AA"); ?></div></td>

  • Moderators
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...