SouthwestVA Posted September 1, 2012 Report Share Posted September 1, 2012 $flights = ACARSData::GetACARSData(); $acars = count(ACARSData::GetACARSData()); $pilots = PilotData::getAllPilots(); if($acars > 0) { foreach($pilots as $pilot) { $pilotid = $pilot->pilotid; foreach($flights as $flight) { $pilotflight = $flight->pilotid; if($pilotflight == $pilotid){$status = 1;} else {$status = 0;} } } } else { } It only returns the last pilot. Ex. XXX001 XXX002 XXX003 are all flying, only returns 003 as flying. Anyone? Quote Link to comment Share on other sites More sharing options...
SouthwestVA Posted September 1, 2012 Author Report Share Posted September 1, 2012 Sorry, Its working. It another part thats not. Let me find it. Quote Link to comment Share on other sites More sharing options...
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.