Re: Should I convert special characters before writing them to a table?

From: Date: Thu, 04 Oct 2001 15:01:29 +0000
Subject: Re: Should I convert special characters before writing them to a table?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-69935@lists.php.net to get a copy of this message
> Try addslashes() before executing the query and stripslashes() when > retrieving data from the db. See the online manual for more > details. I think stripslashes() isn't needed when retrieving data from the db, it is needed only in the query string to protect special chars from interpretting them as sql. Arpi

« previous php.general (#69935) next »