Ma fai un strstr("stringa","stringa");

Scusate non avevo visto con mysql!!