if statement for contents of a blob

wxdqz

New Member
I have been looking for an example of an if statement that will look at the contents of a MySQL blob, and return true if that blob contains one or more words.

The item that I am using for fields that contain only 1 word is easy...

if ( $word == "word")

but that is just a one word field.

I'd like a way to say...

if ($blob contains "word", or "word", or "word"...)

but I seem to be too inept to come up with it.

Basically, it would be similar to a search of the blob, but without user input. Maybe there is an easier way to do it, but I am very new at this.

I do seem to be making headway, but there is a lot I have to learn.

Thanks in advance for input.
 
Back
Top