Jump to content

Wanted to Skip Aircraft from Touchdown stats


IrfanKhan

Recommended Posts

Hello everyone just need little help if for example from simpilot touchdown module i wanted to skip any of the aircraft how should i get the final result.

from all the touchdowns i wanted one or more aircraft should not show up what will be the code i can use to skip any aircraft?

i used this code but still no luck

<?php
foreach($stats as $stat)
{
 $pilot = PilotData::getPilotData($stat->pilotid);
 $aircraft = OperationsData::getAircraftInfo($stat->aircraft);
 If($aircraft->code == “C172â€) { Continue; } else {
 echo '<tr>';
 echo '<td>'.PilotData::getPilotCode($pilot->code, $pilot->pilotid).' - '.$pilot->firstname.' '.$pilot->lastname.'</td>';
 echo '<td>'.$aircraft->fullname.'</td>';
 echo '<td>'.$stat->arricao.'</td>';
 echo '<td>'.$stat->landingrate.'</td>';
 echo '<td>'.date(DATE_FORMAT, strtotime($stat->submitdate)).'</td>';
 echo '</tr>';
}
}
?>

Thank you

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