I've searched the Internet numerous different ways, but cannot find the answer to my question. I am teaching myself website development and am trying to create an online real estate website.
My problem arises when I attempt to search for a property. For example, I want to search for all properties in particular area or postcode. When I attempt to search multiple fields such as address line 1, address line 2, postcode, and area (like London SW1V).
Below is the query I'm currently using, and hope to change it to work the way I need:
SELECT property.propertyid, property.propertyname
FROM property
WHERE property.address_1 LIKE '%txtSearchField%'
OR property.address_2 LIKE '%txtSearchField%'
OR property.postcode LIKE '%txtSearchField%'
OR property.area LIKE '%txtSearchField%'