how do i properly store my php and html code in mysql ?
ok i have text area and i would paste my php and html code inside the text area and then insert it to table
i use this but the code is not displaying correctly when i call it
<textarea rows='6' cols='40' name='content'></textarea>
let say i want to paste this..
$content = mysql_real_escape_string(htmlspecialchars($_POST['content']));
this is just an example..the actual code that i want to paste is a bit long
<?php echo 'hello world<br>'; ?>
the code is change to
<?php echo \'hello world<br>\'; ?>
in browser it is display like this
Thank you in advance