Jump to content

Recommended Posts

Posted

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 ...

  • Administrators
Posted

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.

Posted

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?

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...