Forum Moderators: coopster
For eaxmple, i will select all data about topic from database, and display them onto a TEXTAREA. But i want the different topics into different rows. How i can do that? Thanks.
<form>
<TEXTAREA cols="50" rows="10" wrap=off>
<?
while($row = mysql_fetch_array($result))
echo $row['Topic'];
?>
</TEXTAREA>
</form>
><?
>while($row = mysql_fetch_array($result))
>echo $row['Topic'];
>echo "\n";
>?>
></TEXTAREA>
></form>
Thanks Rover, i put the new line and the topic in a same line, then it does the work. like the following;
echo $row['Topic'] . "\n";