I have a problem that I do not know how to solve.
I have a database with a table of flights, which has various attributes, including "departure_time". if the user wants to buy today's ticket, then he will display only those flights that have not yet made. for example: I enter the direction of Rome-London, today there are flights at 10 am and 10 pm, and now it's 3 pm, of course, I can't fly on a flight that was 5 hours ago, and that is, this flight won't show me, but I can fly in 7 hours and this flight will show me. in general, I don’t know how to send a request to the database so that it compares the current time with the time of sending the aircraft and displays only available flights.
I will be grateful for any help! <input class="currentTime" type="hidden" name="time"> var now = new Date(); var time = now.getHours() + ':' + (now.getMinutes()<10?'0':'') + now.getMinutes(); $cutime = $_REQUEST['time']; $queryResult = mysql_query("SELECT * FROM
<input class="currentTime" type="hidden" name="time"> var now = new Date(); var time = now.getHours() + ':' + (now.getMinutes()<10?'0':'') + now.getMinutes(); $cutime = $_REQUEST['time']; $queryResult = mysql_query("SELECT * FROM
flights WHERE //дальше не знаю что именно прописать");
WHERE //дальше не знаю что именно прописать");