This is a system that calculates the
T/D pilot's average for its last flight.
Pilots not flying
Pilots with record flight
Installation Manual
1° Download of the File (TouchdownStats)
2° Send the folder of the module to your website. within the system PHPVMS
3° Enter the code within the pages Profile_main.tpl and pilot_public_profile
Download of the MODULE here
Code to TPL
<?php
$somar = mysql_query("SELECT SUM(landingrate) as landingrate FROM `phpvms_pireps` WHERE pilotid=$userinfo->pilotid");
$total = mysql_fetch_array($somar);
$v_total = $total['landingrate'];
$linha = mysql_query("SELECT * FROM `phpvms_pireps` WHERE pilotid=$userinfo->pilotid");
$taxa = mysql_num_rows($linha);
$v_taxa = $taxa;
$media = $v_total/$v_taxa;
$v_media = number_format($media, 0, '.', '');
?>
<?php echo $v_media." ft/min"; ?>
Great flights to all.
By.
Fernando