What's wrong with my Quotes?

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
ssand
Forum Commoner
Posts: 72
Joined: Sat Jun 22, 2002 9:25 pm
Location: Iowa

What's wrong with my Quotes?

Post by ssand »

8O
Hi, I have data from a form being inserted into mysql and then redisplayed. The data looks to be ok in mysql, but when I Select the data from php and displayed the information in the browser the single quotes have an additional quote on them (i.e. Steve's would become Steve''s).

From the php info it looks like magic_quote_gpc is set ON. So, do I or don't I need to addslashes() and stripslashes()??

Steve :roll:
Post Reply