Jump to content

CURRENT FLIGHTS


Guest chikolol

Recommended Posts

Guest chikolol

is there anyway to show on the homepage or anywhere on a div, with a  php code that there is current amount of flights now and clicking on it will take you to the live map

Link to comment
Share on other sites

  • Administrators

It is easy actually, on my site I just created a module that calls any data sitting in the acars table that is less than X number of hours old.

Create a new sql SELECT command to return the data from the phpvms_acars table and then just parse the data into a table or whatever format you are trying to use.

Link to comment
Share on other sites

  • Administrators

Or

$acars_flights = ACARSData::GetACARSData();

foreach($acars_flights as $flight)
{
    // Do as you wish
}

You can also pass a time parameter to ACARSData::GetACARSData(), in minutes, like:

$acars_flights = ACARSData::GetACARSData(60);

Link to comment
Share on other sites

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