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

From: Date: Thu, 04 Oct 2001 14:44:04 +0000
Subject: Re: Should I convert special characters before writing them to a table?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69928@lists.php.net to get a copy of this message
"René Fournier" <renefournier@yahoo.com> wrote: > The reason I ask is, I'm having a problem processing rows in a table that > contain single quotes (specifically, the PHP code I wrote that allows the > user to duplicate a row doesn't work if the a field in the row has a single > quote in it). Try addslashes() before executing the query and stripslashes() when retrieving data from the db. See the online manual for more details. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/

« previous php.general (#69928) next »