I want to store HTML code in mysql database. If I want to store the following code into database
<html>
<body>
<p> this is a paragraph </p
</body>
</html>
they store as they are. But when I retrieve them and echo with php the tag get vanished. But I want to echo them as they are above. I also want to store and show not only HTML but other code (c,java,php) also. Anyone have any idea?
htmlentities($whatever)