Re: inserting free-form text with quotes to mysql
| From: | Jason Bell | Date: | Fri, 20 Jul 2001 19:47:11 +0000 |
| Subject: | Re: inserting free-form text with quotes to mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58964@lists.php.net to get a copy of this message | ||
well, you failed to supply any example of your code, so I have no reason to
assume anything but a syntax issue, therefore I provided an example of
proper syntax that works for me.
----- Original Message -----
From: "garman" <garman@students.uiuc.edu>
To: <php-general@lists.php.net>
Sent: Friday, July 20, 2001 12:44 PM
Subject: RE: [PHP] inserting free-form text with quotes to mysql
> Dude! I already said that wasn't working :)
>
> MG
>
> >===== Original Message From "Jason Bell" <jbell@barkingrat.com> =====
> >$newstring = addslashes($oldstring);
> >
> >then, use $newstring for everything.... should work.
> >
> >----- Original Message -----
> >From: "garman" <garman@students.uiuc.edu>
> >To: <php-general@lists.php.net>
> >Sent: Friday, July 20, 2001 11:57 AM
> >Subject: [PHP] inserting free-form text with quotes to mysql
> >>
> >> I've tried addslashes() and removeslashes() before the submit, but that
> >> doesn't seem to help.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>