There is a text input for the string and select input with the location,
When they search, it queries a database with this query.
I am using PHP to construct the string
$sql = "SELECT *
FROM job_request
WHERE job_province = '$location'
AND job_title LIKE '%$string%'
OR job_description LIKE '%$string%'
OR job_skills LIKE '%$string%'
OR job_experience LIKE '%$string%'"
When I get the results it will show me jobs from other locations that don’t match the location input string?
WHY?
It will show all the jobs with that string in it and I don’t want that.
Use brackets for proper expression interpretation:
Frankly, you should be looking at using Full Text Search functionality for the job_* field searching.