You could do it in your SQL statement with LIKE
e.g. select * from tab where text_field like "%text_to_look_for%";
if you are using MySQL it will case insensitive.
NB. Doing a %text% search will not use any indicies so may not be the best way to go.
HTH
Justin