[FX.php List] Problems with a field having a " ' " entered
Derrick Fogle
derrick at fogles.net
Fri Aug 25 15:38:17 MDT 2006
You must have just missed all the hoopla over magicquotes and
stripslashes on this list a couple weeks ago.
Either turn off the PHP magic_quotes_gpc (the setting can be
controlled in the php.ini file), or use stripslashes() on anything
going into your DB that might contain apostrophes or quotes, like this:
$query -> addDBParam('fieldname', stripslashes($submitteddata));
Turning off magic quotes is generally preferred, but using
stripslashes will almost always work.
On Aug 25, 2006, at 4:32 PM, FHASELTINE at aol.com wrote:
> I would like to know how to get a word like Women's to Post
> Correctly and to be read correctly
>
> If I. Post women's to the data base, and I then display it in a web
> browser, I get women\'s showing up.
>
> How do I get the apostrophe character to be entered and once
> entered to be displayed correctly?
>
> Florence Haseltine
> AIM: Fhaseltine
> fhaseltine at aol.com
> 240-476-7837
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
Derrick Fogle
derrick at fogles.net
More information about the FX.php_List
mailing list