addslashes

From: Date: Thu, 15 Jan 2004 19:19:53 +0000
Subject: addslashes
Groups: php.general 
Request: Send a blank email to php-general+get-174687@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

« previous php.general (#174687) next »