Re: Problem with inserting single quot
| From: | afan pasalic | Date: | Tue, 15 Aug 2000 23:06:47 +0000 |
| Subject: | Re: Problem with inserting single quot | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-1815@lists.php.net to get a copy of this message | ||
Thank you G. for your very fast answer. But, I'm beginner in PHP and can you
be a little bit more specific?
----- Original Message -----
From: "Gilles Tran" <tran@inapg.inra.fr>
To: <php-windows@lists.php.net>
Sent: Tuesday, August 15, 2000 3:00 AM
Subject: Re: [PHP-WIN] Problem with inserting single quot
> afan pasalic wrote:
>
> > Hi everyone,
> > I have created o form that gets submitted to MySQL. When someone adds an
apostrophe ( ' ) it wirtew it escaped like ( \' ). The problem is that when
we try to process anything with this data, the process won't happen. Is
there a way for me to escape this apostrophe and make sure it writes
correctly to MySQL .
>
> Sound like a job for the addslashes() function.
>
> G.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>