Output HTML formatted text

A

Anonymous

Guest
This has worked for me:
Code:
<?php
$myvariable = '<table border="0" cellspacing="2" cellpadding="0" class="sndetail"><tbody>
	<tr><td class="snddata"><p class="description">Mytext is her, i dont know 
	how to output this to streight html code. </p></td></tr></tbody></table>';

echo "$myvariable";
?>
Note the single quotes when assigning the html code to $myvariable
 
Back
Top