M-Queiroz Posted May 15, 2009 Report Share Posted May 15, 2009 * Total Pilots: 51 * Total Flights: 326 * Total Hours Flown: hours ??? HY ,good evening How are you sir? Iwold like,if you will can help me in this problem. I didn´t fixed the hours total belong my Virtual companyair line va virtual. I never now,how mutch hours,my Company have. I did try,all my ways to make this segments work,and I didn´t get. Wha can I do for? Can you give me a idea? Thanks for all,and I will weating for a answer. A big hug Qeiroz Marcelo Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 15, 2009 Administrators Report Share Posted May 15, 2009 In the admin panel, under settings->maintenance options, click "reset total hours", that should fix it up for you Quote Link to comment Share on other sites More sharing options...
M-Queiroz Posted May 18, 2009 Author Report Share Posted May 18, 2009 Nabeel ??? The forum rosettes more hours did not not appear to be no give in never worked since I installed 2 updates put the javiysilvia nothing more Eté Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 18, 2009 Administrators Report Share Posted May 18, 2009 So the total hours shows up blank? Quote Link to comment Share on other sites More sharing options...
M-Queiroz Posted May 18, 2009 Author Report Share Posted May 18, 2009 * Total de Pilotos: 52 * Total Voos: 351 * Total de Horas Voadas: yes I tried to but this must be missing something <?phpfunção pública estático TotalSchedules () { ( $sql = 'SELECT COUNT(*) AS total $ sql = 'SELECT COUNT (*) AS total FROM '.TABLE_PREFIX.'schedules'; FROM '. TABLE_PREFIX. "Calendários"; $res = DB::get_row($sql); $ res = DB:: get_row ($ sql); return $res->total; return $ res-> total; } ) ?> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 18, 2009 Administrators Report Share Posted May 18, 2009 Just do this; <?php echo Statsdata::TotalHours(); ?> http://docs.phpvms.net/api Quote Link to comment Share on other sites More sharing options...
selwynorren Posted June 11, 2009 Report Share Posted June 11, 2009 Hi Nabeel, I have never noticed this one before but my total hours frlown is blank I am using <?php echo Statsdata::TotalHours(); ?>[/code} but its just black. I only noticed this this when I tried adding teh ionformation on my front page. I see that in my admin dashboard its the same. I reset teh hours in teh maintenance section, there it gave me teh correct hours and all, but its jyst not showing Thanks Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 11, 2009 Administrators Report Share Posted June 11, 2009 Interesting, I'll take a look Edit: Does it show up on the dashboard/admin panel? Quote Link to comment Share on other sites More sharing options...
selwynorren Posted June 11, 2009 Report Share Posted June 11, 2009 Hey Nabeel Unfortunately not. tahts when I picked up teh error, I have downloaded teh latest update so now in teh admin panel ist shows 704, if that helps. Regrettably I cannot recal if it ever showed before, like I said I never really noticed until now. After I went into teh maintenece area, and clicked each one of thise, its now no longer shows total flights on my front page, but the admin dashboard shows teh flights correctly. Both of them do not echo any data at all for hours Is it not perhaps a permission set incorrectly? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 11, 2009 Administrators Report Share Posted June 11, 2009 Will be fixed next beta, but to fix for now: INSERT INTO `phpvms_settings` (`id` ,`friendlyname` ,`name` , `value` ,`descrip` ,`core`) VALUES (NULL , 'Total VA Hours', 'TOTAL_HOURS', '0', 'Your VA''s Total Hours', '0'); In phpMyAdmin or whatever you use for the database Quote Link to comment Share on other sites More sharing options...
selwynorren Posted June 11, 2009 Report Share Posted June 11, 2009 Your a star Sir, I will quickly apply this temp update and let you know Quote Link to comment Share on other sites More sharing options...
selwynorren Posted June 11, 2009 Report Share Posted June 11, 2009 Hey Nabeel, Yup that did teh trict! I reset teh hours and now its all work beautifly. I have one more query, but I will search and post in teh correct thread. Thanks a million!!! 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.