Jump to content

[SOLVED] price range


anthony-needs-you

Recommended Posts

Hi everyone, i am trying to create a search fuction with a price range.

 

The html for the price range is:

 

 <select name="pricerange" class="field">
          <option selected="selected">any price</option>
          <option value="0:100">£0 - £100</option>
          <option value="101:300">£101 - £300</option>
          <option value="301:500">£301 - £500</option>
        </select>

 

and the php is

 

list($min,$max) = explode(':',$_POST['pricerange'],2);

$result = mysql_query("SELECT departureDate, expireDate, airport, destination, resort, hotel, duration, board, price, description, customerRef, mystiqueRef, stars FROM holiday WHERE destination LIKE '%$where%' AND duration LIKE '%$stay%' AND price BETWEEN '%$min' AND '%$max'");

 

The price range is not working?

Link to comment
https://forums.phpfreaks.com/topic/139588-solved-price-range/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.