I have a start and end time in milliseconds.
I have to get all the TV series that are ON AIR when the user visits the page.
So I am trying to do this:
if($prog["inizio"] < time() && $prog["fine"] > time()){ array_push($programmazioneFinal[$date."-".$prog["id_canale"]], $prog); } The logic is to get only those series whose starting time is lower than now (the serie is already started) and the end time is bigger than now.
For some reasons it is also returning those series that start much later in the day, not just the ones ON AIR now.
What's wrong?
I have added a screenshot of my DB just to make this clearer.
Thank you!

*null* < time()is true) . Thus you get even the ones not started. Check the PHP code that reads the DB.