addslashes
| From: | Jo�o C�ndido de Souza Neto | Date: | Thu, 15 Jan 2004 20:07:59 +0000 |
| Subject: | addslashes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174691@lists.php.net to get a copy of this message | ||
Hello to all.
I'm using str_replace("\r\n","\\r\\n",addslashes($campo)) to add
"\" in
mysql data to send to javascript variable.
Running in my machine with win xp + iis it's all ok, but in server with
linux + apache, the javascript variable no have "\" causing error in my
script.
Anybody know how do i do ?
Thanks.
João Cândido de Souza Neto
webdeveloper
icq: 1996331
msn: jcsneto@hotmail.com
www.saladamix.com.br