How do we include the stats of the airline on the frontpage? Like how many flights, hours, etc.?
You call the function from the StatsData module as such:
Total Hours: <?php echo StatsData::TotalHours(); ?><br />
Total Flights: <?php echo StatsData::TotalFlights(); ?>
nice! Thanks.
is there anyway to shorten the flight hours?
example:
Flight Hours 1.1000000238419
could it be shortened down to
Flight Hours 1.10
Also, is there a way of showing total profit?
Total profit? I’m building those functions in, including cost per flight, passengers per flight, cost, you know, basic financials.
Those numbers, not yet, I’m gonna be shortening that to the hundreth place