note 1592 deleted from function.addslashes by didou

From: Date: Sun, 18 May 2003 00:54:44 +0000
Subject: note 1592 deleted from function.addslashes by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48301@lists.php.net to get a copy of this message
Note Submitter: info@bokelberg.de ---- Using an oracle database addslashes doesn`t work to escape single quotes. You have to double the single quote instead. Here is an example using ereg_replace: <p> $escaped_string = ereg_replace("'","''",$string_with_single_quotes);

« previous php.notes (#48301) next »