Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    sql query into textarea

    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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Would you be needing to copy and paste them or were you just wanting to display them?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I just want to display them.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,726
    Thanks
    6
    Thanked 1,013 Times in 986 Posts
    Just put the text into a division, assign a size to it and set the CSS “overflow” property to “auto”.
    Code:
    div#dyna_text {
    	width: 200px;
    	height: 50px;
    	overflow: auto;
    }

  • Users who have thanked VIPStephan for this post:

    weeburt1 (02-20-2009)

  • #5
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Outstanding. That is exactly what I was looking for. Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •