Jump to content

dep time search in schedule search facility.


Recommended Posts

Posted

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

  • 1 month later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...