I am trying to build a search that returns the matching records as well as the non-matching records.
Does anyone have a solution to doing this?
I am currently trying to do it using the NOT IN function in MySQL. I am having difficulty though because you have to build a set of values that will not be considered in your search.
Those NOT IN values are the IDs of the records that are found. I am having trouble because the number of records found will change.
The syntax for the NOT IN function is this:
Field1 NOT IN (value1, value2, value3, etc..)