I have a chunk of html code stored in a field in a mysql database. If i try and echo it out it just sits on the page as text. Is there a way to echo it out in a working fashion. ( Meaning the html displays what it is meant to display )
The code is stored in a varchar field and i used nl2br with special characters to insert it. The code display's as text but it is what it should be.
Again can i echo the code out in a working way?
EDIT - This is the code that is displayed on the page.
<img name="" src="http://www.mysite.com/assets/viewcart.png" width="114" height="48"alt="" />
and this is the code stored in the database.
<img name="" src="http://www.mysite.com/assets/viewcart.png" width="114" height="48" alt="" />
The Echo request i used to get the code out was a simple.
echo $row['htmlcode'];
Thanks for any help and examples.