Re: Urgent - MySQL is not inserting the single quotes

From: Date: Fri, 08 Mar 2002 05:29:08 +0000
Subject: Re: Urgent - MySQL is not inserting the single quotes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-87742@lists.php.net to get a copy of this message
On Friday 08 March 2002 13:10, Analysis & Solutions wrote: > On Fri, Mar 08, 2002 at 12:44:30PM +0800, Manisha wrote: > > thanks, you are right, gpc_magic_quotes of php.ini was off. > > Oh, so then in your script, you weren't using the addslashes() function. > > Personally, I prefer *magic_quotes to be off, allowing me to precisely > control what I want to do with the input. For portability, the best thing to do would be to check what the settings are using get_magic_quotes_gpc(), get_magic_quotes_runtime() or ini_get() and act accordingly.

« previous php.general (#87742) next »