Re: Escape Data In/Out of db [solved]

From: Date: Sat, 11 Apr 2009 14:57:27 +0000
Subject: Re: Escape Data In/Out of db [solved]
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-291365@lists.php.net to get a copy of this message
tedd wrote: > At 9:12 PM -0700 4/9/09, Jim Lucas wrote: >> tedd wrote: >>> At 5:03 PM +0200 4/9/09, Jan G.B. wrote: >>>> >>>> You might want to use htmlspecialchars($str, ENT_QUOTES) >>> >>> OUT from db to html >>> >>> and >>> >>>> mysql_real_escape_string(stripslashes($_POST['yourself'])); >>> >> >> The above tells me that you probably need to look at your magic quotes >> setting. > > The php info says: > > magic_quotes_runtime Off Off > magic_quotes_sybase Off Off > > I'm assuming that means OFF, right? > > Cheers, > > tedd I think you want to look for magic_quotes_gpc -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#291365) next »