When I try to echo most of XTHML tags inside a PHP loop which one echo's data from a MySQL it just shows text in browser. I'm running XAMPP Control Panel with Apache and MySQL for tests.
CODE:
echo "<textarea readonly>";
while ($wiersz = mysql_fetch_array($sql_wynik_zapytania))
{
echo " ".$wiersz['NICK'].":\n";
echo $wiersz['KOMENT']."\n"."<hr />"."\n";
}
echo "</textarea>";
The results in browser:
NICK:
a
<hr />
NICK:
asdaa
<hr />
pallluch:
cccc
"a" "asdaa" "cccc" are just random texts added to table in databse for tests.
Echo works perfectly fine with <textarea>
, but <hr>
doesn't seems to.
Can anyone help?