# phil@stripped / 2003-05-14 17:03:03 -0400:
> > the preg_split() call should have looked e. g. like this:
> >
> > preg_split('~\s+~', $txt_searchstring)
> >
> > and the sprintf() one:
> >
> > sprintf('%s LIKE "%s"', $col, $word);
>
> I tried those modifications and now am getting an error on this :
>
> mysql_real_escape_string($word)
>
> As undefined.
that function exists in PHP since 4.3.0--as you would have known if
you had a look in the PHP manual. you can use mysql_escape_string()
instead of it. it would be nice if you showed you did your part of
solving your problem, such as: didn't just whine "it gives me parse
errors, what am I supposed to do", but looked at the code you'd
been given and fixed those typos yourself.
rule no. 1: don't expect others to do your homework.
--
If you cc me or remove the list(s) completely I'll most likely ignore
your message. see http://www.eyrie.org./~eagle/faqs/questions.html