xbl1 Posted December 20, 2006 Share Posted December 20, 2006 Hello; how to put diffentent sentence into differnt rows in TextArea? please. 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> Link to comment Share on other sites More sharing options...
Lulzim Posted December 20, 2006 Share Posted December 20, 2006 add an \r after each row you print <form> <TEXTAREA cols="50" rows="10" wrap=off> <? while($row = mysql_fetch_array($result)) echo $row['Topic']."\r"; ?> </TEXTAREA> </form> Link to comment Share on other sites More sharing options...
xbl1 Posted December 21, 2006 Author Share Posted December 21, 2006 add an \r after each row you print<form> <TEXTAREA cols="50" rows="10" wrap=off> <? while($row = mysql_fetch_array($result)) echo $row['Topic']."\r"; ?> </TEXTAREA> </form> Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now