| 1. |
Solve : php sql string querying with wildcard? |
|
Answer» I currently have a php file that runs when users SUBMIT text in certain fields around my site. Right now, the file only looks for specifics words I enter into a table, and it only finds exact words. What I want to do is have the sql tring be able to USE wildcard values around the {invalid_word} tag so it can FIND and prevent a user from submitting text if a long word contains the text on my banned list. Like, if I banned the word hair, and someone tried using the word hairball, it would let them. This is what the current php file code is |
|