Hi all,
I'm trying to determinate witch flights have been done on time.
The logic is: if the flight time is bigger than the estimated, the result is Delayed, else On time.
So i simple code:
<?php
if ($pirep->flighttime > $schedules->flighttime)
{
echo "Delayed";
}
else
{
echo "On time";
}
?>
On results, all flights are "Delayed", and it's not truth.
Help guys, what is wrong with my code?
Thanks for attention!