I have a sample code stored in my db... <p><b>Title</b><br>some text</p> etc etc...
How can i display this text with the html code executed?
Retrieve it from the database to a variable then echo out the variable where you want the code.
HTML is just a markup language is thus HTML code is non-executable.
Perhaps you want to display the HTML tags as-is? If so, then consider [man]htmlspecialchars/man or [man]htmlentities/man.