Re: Problem displaying a mysql database field

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux