Guest chikolol Posted January 17, 2010 Report Share Posted January 17, 2010 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 Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 21, 2010 Report Share Posted January 21, 2010 **BUMP** I also would like to know if there is a way! Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 21, 2010 Administrators Report Share Posted January 21, 2010 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. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 21, 2010 Administrators Report Share Posted January 21, 2010 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.