Re: insert problem mysql
| From: | shi | Date: | Wed, 05 Sep 2001 16:13:32 +0000 |
| Subject: | Re: insert problem mysql | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12175@lists.php.net to get a copy of this message | ||
Thanks
Shimon
"John Lim" <jlim@natsoft.com.my> wrote in message
news:20010905161946.13937.qmail@pb1.pair.com...
> Use
>
> $s = addslashes($s);
>
>
> "Shi" <shimon@oek.dk> wrote in message
> news:20010905114021.39460.qmail@pb1.pair.com...
> > Hi
> > I'm trying to insert a text into a MYSQL DB, and here is the problem. If
> the
> > text looks like this "xxxxx xx x x xxx 'xxx xxx" then PHP interprets the
> > text following the ' as an sql statement. Does anyone know how to
overcome
> > this problem.
> >
> > Thank you
> > Shimon
> >
> >
>
>