IrfanKhan Posted March 7, 2015 Report Posted March 7, 2015 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 Quote
freshJet Posted March 7, 2015 Report Posted March 7, 2015 After you start the loop: if($aircraft->icao == 'B738'){ continue; } 1 Quote
IrfanKhan Posted March 7, 2015 Author Report Posted March 7, 2015 Thank you so much itrobb really appreciate your help. ISSUE SOLVED 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.