Total Hours Flown

    *  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

In the admin panel, under settings->maintenance options, click “reset total hours”, that should fix it up for you

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é

So the total hours shows up blank?

    *  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;
} )  ?>

Just do this;

<?php
echo Statsdata::TotalHours();
?>

http://docs.phpvms.net/api

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

Interesting, I’ll take a look

Edit: Does it show up on the dashboard/admin panel?

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?

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

Your a star Sir, I will quickly apply this temp update and let you know

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