allex01 Posted December 31, 2008 Share Posted December 31, 2008 I have the text stored in teh database like <b>sometext</b>. When i output it with php. It outputs exactly as it's stored in the database. I want php to treat this as html and make the <b>sometext</b> as sometext being bold. What php function do i need to use to make it execute the html instead of outputing the html text. Thanks Quote Link to comment Share on other sites More sharing options...
dropfaith Posted December 31, 2008 Share Posted December 31, 2008 it should already as php is server side hen the browser sees the <b> as an html entity not as plain text show us some code of how \your currently displaying it from the database Quote Link to comment Share on other sites More sharing options...
allex01 Posted December 31, 2008 Author Share Posted December 31, 2008 I typed the html in the database manually <b>html text</b>. I echo out the fields in the array like echo $this->fields_arr['html']; It's outputting html as text and not executing it as html. Quote Link to comment Share on other sites More sharing options...
bdmovies Posted December 31, 2008 Share Posted December 31, 2008 We really need source code to see what's going on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.