Re: Problem displaying a mysql database field
| From: | Chris | Date: | Wed, 21 Jun 2006 02:32:46 +0000 |
| Subject: | Re: Problem displaying a mysql database field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238450@lists.php.net to get a copy of this message | ||
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/