i tried this.
$sql = "SELECT *
FROM Listings
WHERE suburb = '".$sql_2."'
AND type = '".$property."'
AND price BETWEEN '".$pricefrom." AND '".$priceto."'
AND bed BETWEEN '".$bedfrom."' AND '".$bedto."'
ORDER BY ".$order;
but comes up with a cant connect to database error.
if i remove this.
AND bed BETWEEN '".$bedfrom."' AND '".$bedto."'
it works but dosent select all prices between seems to ignore that part.
if i set the AND back to HAVING it works.
$sql = "SELECT *
FROM Listings
WHERE suburb = '".$sql_2."'
AND type = '".$property."'
HAVING price BETWEEN ".$pricefrom." AND ".$priceto."
ORDER BY ".$order;
but i need the other having.
p.s pricefrom and to are numbers so no ' '
cheers aron.