Don wrote:
Hi,
I have a varchar field in a MySQL database that contains a line of text like
so:
"This is a line if text" The double quotes are included in the database field. I cannot seem to display it on my HTML page, it always shows as blank. I
have tried using both the stripslashes() and the html_entity_decode() but it
still shows as blank.
How can I display this please???

If you're putting this into a <input type="text"> type box you need to encode it not decode it.

htmlspecialchars or htmlentities will do it for you.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to