Re: Slashes

From: Date: Wed, 10 Dec 2003 04:05:22 +0000
Subject: Re: Slashes
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-31956@lists.php.net to get a copy of this message
Ng Hwee Hwee wrote:
$value = trim(EscapeShellCmd($fieldName)); and then i do a $query= "insert into table set name='$value'"; i swear i did not add any slashes twice (at least for what i know!!).. is there another way that i could have addslashes twice without my knowing??
Heh... look at the output of echo EscapeShellCmd("it's not okay"); Why do you even use EscapeShellCmd? That's the whole purpose of magic_quotes_gpc... to escape quotes that'll cause you trouble. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#31956) next »