Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Foong
if Magic_quotes_gpc in you php.ini is set to 'on', php will automatically escape(add slashes) for you. Foong "Charles Kline" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John, > > You are right, something was adding the additional slash. I removed the > addslashes() and it fixe

Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
John, You are right, something was adding the additional slash. I removed the addslashes() and it fixed the problem. Something I am doing must already be handling that... will step through the code AGAIN and see if I can find it. - Charles On Monday, March 17, 2003, at 12:19 PM, John W. Holme

RE: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread John W. Holmes
> I am inserting data from a form into a mySQL database. I am using > addslashes to escape things like ' in the data input (this is actually > being done in PEAR (HTML_QuickForm). > > The weird thing is that the data gets written into the table like: > what\'s your problem? > > WITH the slash. I

[PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
Hi all, I am inserting data from a form into a mySQL database. I am using addslashes to escape things like ' in the data input (this is actually being done in PEAR (HTML_QuickForm). The weird thing is that the data gets written into the table like: what\'s your problem? WITH the slash. I am