Re: HTML stored in a text field

From: Date: Wed, 06 Oct 2004 16:19:16 +0000
Subject: Re: HTML stored in a text field
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36652@lists.php.net to get a copy of this message
Gabe Covert wrote:
I have a database which has a BLOB field storing text... It should probably be in a text field, but I don't think that's the problem... The field has HTML control codes, such as <b>, </b>, and <p>. When I echo them from the database, a la: echo "<td>" . $row['textfield'] . "</td>" I get the contents of the field with the tags showing up, isntead of applying to the HTML. How can I get these tags to aplpy to the text in the field? Thanks! Gabe To my knowledge you can't - a textarea only displays text, not formatted text.


« previous php.db (#36652) next »