Re: addslashes
| From: | Marek Kilimajer | Date: | Thu, 15 Jan 2004 19:26:49 +0000 |
| Subject: | Re: addslashes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174693@lists.php.net to get a copy of this message | ||
Send us the resulting javascript code.
João Cândido de Souza Neto wrote:
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