Re: [PHP4BETA] Addslashes
| From: | ZioBudda | Date: | Wed, 15 Dec 1999 16:11:41 +0000 |
| Subject: | Re: [PHP4BETA] Addslashes | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7950@lists.php.net to get a copy of this message | ||
On Wed, 15 Dec 1999, root wrote:
> Guys, i think i hit a bug in the php-4b3 release. Ive got a script that
> saves a text field from a entry form (<textarea>) into a DB field (mysql
> mediumtext). On submission i do a
> $text = addslashes($text);
> to prevent SQL errors. When i save this 'string', and edit the content
> again it has still got \'s in the text. Eg
> begin text : i'm curious how this will work
> text after addslashes (so send to the DB) : i\\\'m curious
> text when querying/displaying string: i\'m curious
hmmm...
in the php.lib see if you have this line:
magic_quotes_gpc = Off
Linux e' il sistema operativo dell'uomo che pensa.
--
Michel <ZioBudda> Morelli michel@enter.it
http://ziobudda.enter.it
Italian Linux FAQ http://ziobudda.enter.it/FAQ/
Italian Linux Press http://ziobudda.enter.it/ILP/