RE: [PHP] Confused about which function to use with forms/database

From: Date: Fri, 17 May 2002 23:52:56 +0000
Subject: RE: [PHP] Confused about which function to use with forms/database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98195@lists.php.net to get a copy of this message
> > When you suck the data back out you'll obviously need to > > stripslashes() to get rid of the 'escape' chars you added above. > > Nope, because the escape characters don't actually get added to the > database. > When the database's command interpreter sees it, it removes > the escape character (\) before inserting the string into > the database. So it's back to its original form then. When > you retrieve it, you'll just get: Ah, fair enough. Obviously, I've never actually tested that particular behaviour. I'll keep this in mind for future reference though. CYA, Dave

« previous php.general (#98195) next »