# Help with html tags in php

**URL:** <https://forum.kirupa.com/t/help-with-html-tags-in-php/232658>\
**Category:** Uncategorized\
**Created:** [July 16, 2007, 6:57pm UTC](https://forum.kirupa.com/t/help-with-html-tags-in-php/232658 "2007-07-16T18:57:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wo1olf](https://avatars.discourse-cdn.com/v4/letter/w/278dde/32.png) [@wo1olf](https://forum.kirupa.com/u/wo1olf)\
**Post date:** [July 16, 2007, 6:57pm UTC](https://forum.kirupa.com/t/help-with-html-tags-in-php/232658/1 "2007-07-16T18:57:53Z")

</div>

[FONT=Verdana]Basicaly i have 2 pages:  
the first one add content into a db made with phpmyAdmin; the second one display that content from the data base.  
In the first page i used htmlentities  
like this:  
_$text = htmlentities(strip\_tags($\_POST[‘newTxt’\*\*]));  
mysql\_query (…)  
//update query_  
in the second one i used html\_entity\_decode  
like this  
\*$ result = mysql\_query (…)  
//get content query  
while($row = mysql\_fetch\_array($result))  
{  
\*_echo html\_entity\_decode($row[‘texte’]);  
\*\* }_

The problem that i’m having is whenever there are html tags they are not interpreted but display in the html form  
EX:if the text is \<b\>some text\</b\>  
the display page show \<b\>some text\</b\> not \*\*some text  
**what do i have to change to get it work correctly ?**  
\*\*[/FONT]
