#1
  1. No Profile Picture
    Rainer
    Guest
    Devshed Newbie (0 - 499 posts)
    is there a way to format the text from a multi-line textfield (html), including line breaks, tabs etc. and to properly insert it into a mysql-table ?

    thanks
  2. #2
  3. No Profile Picture
    jcommand
    Guest
    Devshed Newbie (0 - 499 posts)
    I don't know if this answers your question, but this is what I do:
    INSERT SCREEN:
    <TEXTAREA WRAP="OFF" NAME="DESC" ROWS="15" COLS="60"></TEXTAREA>
    (I don't change the formatting at all when writing to MySQL)

    OUTPUT SCREEN:
    print "<PRE>" . $db->row[0] . "</PRE>n";

    Where $db->row[0] is what is returned from my query for DESC

    Hope this helps,
    Jason
  4. #3
  5. No Profile Picture
    Rainer
    Guest
    Devshed Newbie (0 - 499 posts)
    thanks, it was my fault, i just forgot to convert the output string using nl2br()...

Similar Threads

  1. help with tables and wordwrapping
    By junkedBrian613 in forum PHP Development
    Replies: 2
    Last Post: February 15th, 2004, 06:42 PM
  2. how to keep table on top, not centered??
    By vinyl in forum HTML Programming
    Replies: 2
    Last Post: January 20th, 2004, 07:19 PM
  3. Import text file into mysql
    By cmetzke in forum PHP Development
    Replies: 4
    Last Post: January 17th, 2004, 01:51 PM
  4. float question
    By yeah-yeah in forum HTML Programming
    Replies: 10
    Last Post: January 15th, 2004, 04:59 PM
  5. Writing Japanese unicode text to a mysql database
    By jayhay in forum PHP Development
    Replies: 3
    Last Post: January 13th, 2004, 09:10 AM

IMN logo majestic logo threadwatch logo seochat tools logo