hello ppl.
I hope u guys can help me solve this small problem.
I hv created a small chat room where user's data are stored in a mysql database and then retrieve those data and print them in a TEXTAREA on scree. However it seem tht all the html tag is printed too like this :
10:05 <font color=FF0000><b>Enters the Room</b></font>
<br><b>ali:</b> 10:06 something wrong !!!<br>
Is there a function tht i can use?
Wht i need to print in the textarea is :
Enters the Room.
ali:10:06 something wrong !!!
this is my printing function(in php) :
<td width=340 valign="top">
<textarea name="messagewindow" rows="12" cols="50" wrap="VIRTUAL" style="width:340px">
<?
while($chatline = mysql_fetch_array($chats)) {
print "<b>". $chatline["theNick"] .":</b> " . $chatline["theText"] . "<br>";
}
?>
</textarea>
</td>
please help me.
thank you.