I was going to use the scootle solution to handle searches on my website: I was thinking that I How can I get search inputs and can convert it to a single query. For example, let's say that the user has inputed the "blue dog" in his search query ... how can I do this in the union and (in 'blue', 'dogs') and to include intersection questions Dynamically update query?
You can do this:
$ search_string = implode ( ',', $ Search_array);
You can now use the IN
section in your query:
$ query = "Select * from the table where Field IN ('". $ SEARCH_STRING."' ') ";
Comments
Post a Comment