addslashes

From: Date: Thu, 28 Sep 2000 06:22:34 +0000
Subject: addslashes
Groups: php.general 
Request: Send a blank email to php-general+get-17870@lists.php.net to get a copy of this message
Hey, Now that I can't use the htmlspecialchars() etc.. I am forced to use addslashes() until I upgrade, and I want to wait until php 4.03 is officially out. My problem is that when I use: $Name = "O'Connell"; $Name = addslashes($Name); Then try and do a mysql_insert it spits the dummy as the ' has not been escaped. Does anyone know why this isn't working, I have used this before with no problem? I really don't wnat to do an ereg_replace on the insert, and again for viewing. Also magic_quotes_runtime is on, so I shouldn't need to do this at all should I hmmm... I may be forced to upgrade yet :-) Regards, Joseph

« previous php.general (#17870) next »