View Full Version : sql query into textarea

02-20-2009, 03:28 PM
I am new at this, so I dont even know whether textarea is the best way to do this.

I have an sql table with lengthy text in it. I want to display the query into a textarea because, i wanted the scrollbar capability because the query will be returning values that can be up to 4000 chars long.

Is textarea the best way to do this, or are their other methods.

02-20-2009, 03:54 PM
Would you be needing to copy and paste them or were you just wanting to display them?

02-20-2009, 04:06 PM
I just want to display them.

02-20-2009, 05:41 PM
Just put the text into a division, assign a size to it and set the CSS “overflow” property to “auto”.

div#dyna_text {
width: 200px;
height: 50px;
overflow: auto;

02-20-2009, 06:47 PM
Outstanding. That is exactly what I was looking for. Thanks.