Skip to content
Advertisement

SQL handle select with split strings

I have a request whom looks like this :

the :nom is a String, whom can be one word or many words.With php, I want my request to find all the possibility for each words and keep only those in common for each words, but I can’t find the way by myself.

I tried to split my string in a String[ ] and do the request for each words, but i don’t know how to stock the results in different variables.

Please help me. Thanks.


Edit

There is my php code :

I don’t know what to put in my for.

Advertisement

Answer

Juste needed to replace ” ” by “%” and it’s worked

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement