Re: Submiting Data with an '
| From: | Chris Anderson | Date: | Fri, 06 Jul 2001 02:45:57 +0000 |
| Subject: | Re: Submiting Data with an ' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56431@lists.php.net to get a copy of this message | ||
On the same subject, can I make it automatically addslahes to my variables?
Or should I just make my own mysql class?
----- Original Message -----
From: "Matthew Loff" <matt@willetts.com>
To: "'Mike Mike'" <hatchman2000@yahoo.com>;
<php-general@lists.php.net>
Sent: Thursday, July 05, 2001 3:29 PM
Subject: RE: [PHP] Submiting Data with an '
>
> Use the addslashes() call to automatically escape characters like that.
>
> MySQL will not add the slashes into the table cell, so no need to
> stripslashes() after you SELECT it back out.
>
>
> -----Original Message-----
> From: Mike Mike [mailto:hatchman2000@yahoo.com]
> Sent: Thursday, July 05, 2001 3:19 PM
> To: php-general@lists.php.net
> Subject: [PHP] Submiting Data with an '
>
>
> Hello everyone,
> I'm having a problem of submiting an ' into a mysql
> database. When I have a ' it doesn't update or submit
> the data. but if I use \' it works fine. Does anyone
> know of a way around this.
> Thanks
> --Mike
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>
> --
> 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
>
>
> --
> 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
>
>