I have a table name deny_keywords in database with this structure:
| id | word |
|---|---|
| 1 | thief |
| 2 | crook |
| 3 | killer |
and I have an input that user can send a text and this text Placed in variable name $user_text.
Now I want to check if $user_text includes any of deny keywords or no.
Is there a way to do this just using SQL?
A way like this:
SELECT * FROM deny_keywords WHERE %word% like $user_text;