I have four vars: $resi, $multi, $land, $comm
I have a query and part of it looks like this: AND (propType LIKE ('%$resi%') OR propType LIKE ('%$multi%') OR propType LIKE ('%$land%') OR propType LIKE ('%$comm%') OR '$propType' = ' ')
I am wanting it to query the database on the idea that the propType field can be LIKE any of the vars and return a row. It searches okay with one var. But when I search on more than one var it gives me no results. It is looking in the field for Residental, Multifamily. When the field will only contain one of the vars.
Its like it is having to match all of the vars in that one field, when each field will only contain one of the vars. Hope this makes since. Any help would be appreciated.