1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add a text area in wordpress

Discussion in 'Blogging' started by ija61, Sep 16, 2012.

  1. ija61

    ija61 Senior Member

    Joined:
    Mar 2, 2011
    Messages:
    960
    Likes Received:
    634
    Gender:
    Male
    Occupation:
    The first SEO economist:)
    Location:
    Romania
    Home Page:
    EDIT:
    Never mind I solved it by using adding a div in the css with "overflow: auto"


    Hy.

    For a few days I try to do that and I didn't get a result.

    So..

    I have some text in a mysql table and I try to post it in a page in a text area.

    I get a plugin "Simple Select All Textbox" and mange to insert text area in post.
    I make the php script that retrieve the text from the mysq, insert that script in the text area but instead of putting each line of text on each row like this:

    text_line_1
    text_line_2
    text_line_3
    ....
    text_line_6


    I get it like this "text_line_1 text_line_2 text_line_3 text_line_4.... text_line_6"

    This is normal since in the text area the html code is not recognize

    I could post the text directly in the text area the only problem is that I'm talking about 3000 lines and the post area freez when I try to copy paste the entire text.

    I want to use a text area/ text box because that have a scroll down bar and I do not want the text to expand the page size.

    Any idea how to do that?

    Thank you
     
    Last edited: Sep 17, 2012
  2. cojocariuadrian

    cojocariuadrian Newbie

    Joined:
    Jul 24, 2012
    Messages:
    26
    Likes Received:
    4
    Occupation:
    Professional pianist and marketer
    Location:
    Romania
    Home Page:
    No idea how to link a database to text.

    And did not really understand what you mean.

    Maybe post 2-3 photos of what you mean ?

    I guess another option would be to maybe link the scroll-downs to a php file with the text lines in it ?
    I mean not script the php to get the lines from database, just simply make the php echo the lines of text?


    Or maybe your website doesn't have the EXEC PHP plugin yet ? That should make the scroll text area read the php.

    Not really an expert sorry if i talked bull xD