title: php echo working html code from mysql?
body: <p>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 ) </p>
  
  <p>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.</p>
  
  <p>Again can i echo the code out in a working way?</p>
  
  <p>EDIT - This is the code that is displayed on the page.</p>
  
  <pre><code>&lt;img name="" src="http://www.mysite.com/assets/viewcart.png" width="114" height="48"alt="" /&gt;
  </code></pre>
  
  <p>and this is the code stored in the database.</p>
  
  <pre><code>&amp;lt;img name=&amp;quot;&amp;quot; src=&amp;quot;http://www.mysite.com/assets/viewcart.png&amp;quot; width=&amp;quot;114&amp;quot; height=&amp;quot;48&amp;quot; alt=&amp;quot;&amp;quot; /&amp;gt;
  </code></pre>
  
  <p>The Echo request i used to get the code out was a simple.</p>
  
  <pre><code>echo $row['htmlcode'];
  </code></pre>
  
  <p>Thanks for any help and examples.</p>