Hi
I wrote this code to get the hours of a pilot on a single airplane in profile_stasts.tpl but don't work
<?php
$query = 'SELECT flighttime FROM '.TABLE_PREFIX.'pireps
WHERE aircraft = 6
AND pilotid = '.Auth::$userinfo->pilotid'; --------------->I believe that the error is here
$result=DB::get_row($query);
echo $result->distance;
{
}
?>
Can you help? many thanks
Regards
hi kyle, thanks for the module but i have this error
Fatal error: Call to undefined method VAStatsData::monthly_promotions() in /var/www/virtual/xxxxxxmodules/vStatsCenter/vStatsCenter.php on line 47
many thanks kyle
i have add this <?php MainController::Run('vAwards', 'showPilotIssuedAwards', $userinfo->pilotid); ?>
in my profile_main.tpl, i have added the award, but in pilot center dont'view the award
hi jeff, thanks for your interest
I tried your code but not working, there is no result I cannot understand the problem, the code is right
Thank you all for your help guys