Alex Posted October 14, 2011 Report Share Posted October 14, 2011 I'm trying to get a time search function working within the schedules search system. I'm looking to use the following parameters. less than 1,5,10,24 hrs <div id="time"> <p>Select Nearest Departure Time :</p> <select id="type" name="type"> <option value="less">Less Than</option> </select> <label> <select name="time" id="time2"> <option>1 hour</option> <option>5 hours</option> <option>10 hours</option> <option>24 hours</option> </select> $params = array( 's.deptime' <= '> 3600', //less than 1 hr ); $schedules = SchedulesData::findSchedules($params); // You can then do: foreach($schedules as $sched) { echo "Flight is {$sched->code}{$sched->flightnum}"; I'm kinda struggling with it so any help would be appreciated. cheers Alex Quote Link to comment Share on other sites More sharing options...
Alex Posted November 16, 2011 Author Report Share Posted November 16, 2011 Sorry to bump topics, (i don't like doing it) but i realise this has been asked for by a number of people. Thanks Alex Quote Link to comment Share on other sites More sharing options...
Luka.Niko Posted January 3, 2012 Report Share Posted January 3, 2012 Hello! I have the same request, many pilots ask me for the search by departure time. Thanks! 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.