Hello,
I have a mysql database that is for real estate. It is fairly large and lists properties from multiple agents. I have a search form and a query like so:
$query="SELECT * FROM residential WHERE town like ' $selecttown%' AND list_price
like '%$selectprice%' AND bedrooms like '%$bedroomsel%' AND baths like '%$bathselect%' LIMIT 0,15";
The variables like $bathselect, $bedroomsel etc are based on the form output.
I would like to do the following:
1) Add to this query something like this
AND listing_agent like 'Century 21'
However, my goal will be to display listings that match Century 21 above the rest of the listings.
Basically, trying to place listings for 'Century 21' seperate...like a featured agent. With the rest of the query results below.
Any ideas?
Thanks....