Insert HTML in a field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daniyalnawaz
    New Member
    • Aug 2007
    • 15

    #1

    Insert HTML in a field

    Hi!
    I've lots of HTML pages and what I want to do is to put each HTML page in a single field of a row.

    Is it possible through any SQL statement to load a whole HTML in a single cell?

    Thank You!
  • code green
    Recognized Expert Top Contributor
    • Mar 2007
    • 1726

    #2
    I assume you mean the source code. Yes it will go in a text field.
    But I would think twice about it unless you are talking small pieces of code.
    A better idea is store the code in a .txt file and store the file address in the database.
    You will thank me for that one day.

    Comment

    • mwasif
      Recognized Expert Contributor
      • Jul 2006
      • 802

      #3
      Why you want to save the HTML in database? To save a data use TEXT or BLOB columns.

      Comment

      Working...