Character problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonwondering
Forum Commoner
Posts: 39
Joined: Mon Mar 13, 2006 6:26 pm

Character problem

Post by jonwondering »

Hi, when the user enters the ' character in the form and then my site stores it into mysql db, everything seems to be fine.

But when the user views his information, the ' character is displayed as \\\'

For example, user puts in:
what'sup

the site will show it as:
what\\\'sup

Does anybody know how to fix that?

Thanks.

P.S.: I use strip_tags() when displaying user info.
wildbat
Forum Newbie
Posts: 5
Joined: Wed Apr 05, 2006 7:22 am

Post by wildbat »

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

or just turn off magic quotes
jonwondering
Forum Commoner
Posts: 39
Joined: Mon Mar 13, 2006 6:26 pm

Post by jonwondering »

ok that works. thanks wildbat and jshpro2.
Post Reply