I have a PHP array: Array(keyword1,blah0,blah1,blah2)
and an SQL query.
In the query I want to find if one of the data in Array exists in one of the few columns selected (columnA|columnB|columnC)
and fetch that row if true.
I have a PHP array: In the query I want to find if one of the data in Array exists in one of the few columns selected |
||||
|
You'll need a query like this:
|
|||
|
I think this is what you want. I couldn't tell if you wanted to check every column for every value in your array.
You can use PHP to create this statement in a loop
edit: Fixed errors in code |
|||||||||
|