RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

From: Date: Wed, 30 Jun 2004 18:17:40 +0000
Subject: RE: [PHP] Re: How to escape apostrophe in HTML textbox exactly???
Groups: php.general 
Request: Send a blank email to php-general+get-189333@lists.php.net to get a copy of this message
Justin Patrin <mailto:papercrane@gmail.com> on Wednesday, June 30, 2004 11:10 AM said: > mysql_escape_string() and mysql_real_escape_string() do the escaping > as mysql needs it. In addition, you can use PEAR::DB's quoteSmart to > quote and it will change depending on the DB backend you're using. <nod /> > Then you must be getting clashes added twice. Have you tried looking > at the string before running addslashes on it? After running > addslashes? You likely have magic_quotes_gpc turned on. The > overhwelming majority of seasoned PHP developers turn this off as it's > more of a nuisance. If you need more info, search the list archives. magic_quotes_gpc is likely the reason. chris. p.s. does everyone but me have a gmail account or what??

« previous php.general (#189333) next »