Moderators mark1million Posted February 23, 2010 Moderators Report Share Posted February 23, 2010 Hi guys, im having trouble displaying todays flights or flights today this is the code that im using am i missing something somewhere? All the other stats populate except for Total Flights Today. Total Flights Today: <?php echo StatsData::totalflightstoday(); ?><br /> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 23, 2010 Administrators Report Share Posted February 23, 2010 If you do: Total Flights Today: <?php echo StatsData::totalflightstoday(); DB::debug(); ?><br /> Does it show any errors when you view the page? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 23, 2010 Author Moderators Report Share Posted February 23, 2010 Just ran that and no errors what so ever, still stayed as 0 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 24, 2010 Author Moderators Report Share Posted February 24, 2010 Anybody any ideas on this one? I have no error output what so ever, does any one else have the Total Flights Today working on their site? Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
faraz Posted February 24, 2010 Report Share Posted February 24, 2010 I have same problem with Total Hours Flown and Total Flights Today. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 24, 2010 Author Moderators Report Share Posted February 24, 2010 I have same problem with Total Hours Flown and Total Flights Today. My Total hours flown is OK, its just my flights today, maybe ill have a poke in the db see whats going on. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted February 24, 2010 Author Moderators Report Share Posted February 24, 2010 I have just added some extra stuff like aircraft in fleet and total pax, all that is working OK, one thing i did notice was the uppercase letters,I have this, Total Flights Today: <?php echo StatsData::totalflightstoday(); ?><br /> but in the stats data class its defines as StatsData::TotalFlightsToday(); So i have changed it to that but still no error or output, maybe it will update when another pirep is accepted..... Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 25, 2010 Administrators Report Share Posted February 25, 2010 I have same problem with Total Hours Flown and Total Flights Today. Do a search on the TOTAL_HOURS bug, you have to add an entry into the settings table. It's missing for some odd reason 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.