Hello!
I am making a timetable to view flight from an airport. I have the strings departure_time = times departure
departure_minutt = minuttes departure
arrival_time = times arrival
arrival_minutt = minuttes arrival
In thats strings the time to the routes is writen. But it is over 1100 routes and i dont like to have all visible at same time and I would also like to have a message in "status" who said boarding if it is 30 minuttes to departure etc.
So to my question, if we use the "if" tag.
<?
$boarding = $row[departure_minutt] - 10
$gateclosing = $row[departure_minutt] - 5
<? if ($row[departure_minutt] == $boarding) {;?>
Boarding
<? } else {};?>
When I use this I only get boarding one minutte. Is it possible to make an "if" code to get it to be viewed BOARDING betwen $boarding and $gateclosing for an example.
But if the deparure is 12:05 the minutte is 5, and 5 - 10 = -5! Someone who know a way to increase hour if the minuttes go to (-)?
Thanks.