note 29931 deleted from function.addslashes by philip

From: Date: Tue, 20 Jul 2004 17:16:02 +0000
Subject: note 29931 deleted from function.addslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73710@lists.php.net to get a copy of this message
Note Submitter: acid@cpm-fr.com ---- Forget my previous message, steve at teamITS dot com's functions reslash and deslash work right, it's just i didn't understand those queries ARE backslashed like this : INSERT INTO tests (text) VALUES ('It\'s only a test \\o/'); and entries in database look like this : 'It's only a test \o/' This works just well when magic_quote_gpc = OFF In the other hand with magic_quote_gpc = ON u don't need to addslashes() queries, like that : INSERT INTO tests (text) VALUES ('It's only a test \o/'); but ur entries in database look like this : 'It\'s only a test \\o/' ,then u need to stripslashes this if u want to use the data later.

« previous php.notes (#73710) next »