Results 1 to 2 of 2

Thread: Text formatted

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Text formatted

    It is possible to write text in a textarea, convert in HTML and insert in a mysql DB, to show it later accurately as it was in the "editor"?

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Sure. Just have it stored in the original format in the databasel, then convert to html and store as a second place in the DB.
    Or, you could just store in original format and the php on the page that gets the 'html' would make it into code... so you wouldn't have outdated things stored in the database if you wanted to change it later.
    But... that should work.

Bookmarks

Posting Permissions

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