# Statistics of different airlines

**URL:** <https://forum.phpvms.net/t/statistics-of-different-airlines/3428>\
**Category:** Development Help\
**Created:** [September 24, 2010, 11:03pm UTC](https://forum.phpvms.net/t/statistics-of-different-airlines/3428 "2010-09-24T23:03:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Macara](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@El\_Macara](https://forum.phpvms.net/u/El_Macara)\
**Post date:** [September 24, 2010, 11:03pm UTC](https://forum.phpvms.net/t/statistics-of-different-airlines/3428/1 "2010-09-24T23:03:56Z")

</div>

hi,

can someone tell me some code to display on the homepage the statistics of the different flights of different airlines.

example: continental 737, Delta 757, jetblue 737, 757 American Airlines

bone I want to show the different flights of different aircraft registered in such names airlines

can anyone give me these codes please …

---

<div class="post-metadata">

**Author:** ![simpilot](https://forum.phpvms.net/user_avatar/forum.phpvms.net/simpilot/32/26_2.png) [@simpilot](https://forum.phpvms.net/u/simpilot)\
**Post date:** [September 25, 2010, 3:15am UTC](https://forum.phpvms.net/t/statistics-of-different-airlines/3428/2 "2010-09-25T03:15:57Z")

</div>

If you are looking for individual aircraft stats you can use -\>

```
StatsData::AircraftUsage()

```

which will return an array of all the aircraft and their usage totals for routes flown, distance, average distance, average flight time, and all the aircraft info, ie - registration, type, name, etc…

You can build a table around that data and include the information you want to display.

You can also use -\>

```
StatsData::TopRoutes('airline_code')

```

to return the top routes for an individual airline.

---

<div class="post-metadata">

**Author:** ![El\_Macara](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/e/91b2a8/32.png) [@El\_Macara](https://forum.phpvms.net/u/El_Macara)\
**Post date:** [September 25, 2010, 3:14pm UTC](https://forum.phpvms.net/t/statistics-of-different-airlines/3428/3 "2010-09-25T15:14:22Z")

</div>

> If you are looking for individual aircraft stats you can use -\>
> 
> StatsData::AircraftUsage()
> 
> which will return an array of all the aircraft and their usage totals for routes flown, distance, average distance, average flight time, and all the aircraft info, ie - registration, type, name, etc…
> 
> You can build a table around that data and include the information you want to display.
> 
> You can also use -\>
> 
> StatsData::TopRoutes(‘airline\_code’)
> 
> to return the top routes for an individual airline.

thanks for answering a question please.

I am new to this php,

can you give me details where I put the “StatsData: AircraftUsage ()” and "

StatsData: TopRoutes (‘airline\_code’) "bone I know which of the files is that I put them or if I have to open a file using these names.

finally how can I create the table for that please?
