Just can't understand this one?
I have a search_form script that asks for various input fields such as :
<font class="blueb">Property Type</font><BR>
<select name="property_type">
<option value="%">Any
<option value="Camping Site">Camping Site
<option value="Caravan">Caravan
..........
<option value="House">House
</select>
Once the form fields have been sent it queries the database with :
$query="SELECT * from table WHERE
property_country LIKE '$property_country' AND
property_type LIKE '$property_type' AND
bedrooms LIKE '$bedrooms' AND
golf LIKE '$golf' AND
beach LIKE '$beach' AND
pool or private_pool LIKE '$pool' AND
disabled_facilities LIKE '$disabled_facilities' AND
advertise='$rent' AND
paid = '$y' ORDER BY RAND()";
The problem is that it is giing me the wrong results and I just can not figure out why. YET if i choose to pick certain individual criteria it works fine???
Even down to where it says at the end of the search advertise='$rent' it is sending out results that are not rent??
Your help would be great b4 I throw this bloominmachine at the wall !!
Thx
Yarni