Jump to content

Total Hours Flown


M-Queiroz

Recommended Posts

    *  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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Administrators

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

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