Page 1 of 1

[SOLVED] printing Quotes ( " )

Posted: Wed Mar 17, 2004 3:50 am
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

Posted: Wed Mar 17, 2004 5:10 am
by RFairey
use addslashes() to escape the quotes so they display properly?

Thanks

Posted: Wed Mar 17, 2004 5:14 am
by Luis Almeida
Thanks for helping

Posted: Wed Mar 17, 2004 5:19 am
by patrikG
Alternatively you can use [php_man]htmlentities[/php_man].