Hi guys,
i have implemented in our website couple of weeks ago that in the public and private profile your current location is shown.
<?php
$lastreport = PIREPData::GetLastReports($userinfo, 1);
if(!$lastreport)
{
$location = $userinfo->hub;
}
else
{
$location = $lastreport->arricao;
}
?>
<?php
$airport_info = OperationsData::GetAirportInfo($location);
$airportname = $airport_info->name;
?>
<li><strong>Pilot Current Location: </strong><?php echo $location; ?> - <?php echo $airportname; ?></li>
Now i figured out that all pilots have the same location displayed.
Can anybody help me with the issue resolving.
Thanks alot,
Markus