[SOLVED] printing 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
User avatar
Luis Almeida
Forum Commoner
Posts: 33
Joined: Tue Apr 01, 2003 4:22 am

[SOLVED] printing Quotes ( " )

Post by Luis Almeida »

Hi all,

I have one MySql Database and in one of the tables , some fields have registers with quotes ( " ) in it .

When I try to echoe the field it simply ends on the quote

How can I solve this problem???

Thanks in advance
RFairey
Forum Commoner
Posts: 52
Joined: Fri Jun 06, 2003 5:23 pm

Post by RFairey »

use addslashes() to escape the quotes so they display properly?
User avatar
Luis Almeida
Forum Commoner
Posts: 33
Joined: Tue Apr 01, 2003 4:22 am

Thanks

Post by Luis Almeida »

Thanks for helping
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Alternatively you can use [php_man]htmlentities[/php_man].
Post Reply