Forums
 This topic is locked 
             Retrieving HTML from record in Dbase?
 05 Jun 2002  17:25:18 Chris Mr. posted: 
 <font face='Verdana'>I want to be able to retrieve lines of HTML code/links from a record in a database but I can only get it to recognize record contents as TEXT or NUMBERS... <img src=../images/dmxzone/forum/icon_smile_question.gif border=0 align=middle> Anyone know what I need to do so that its Included as HTML and not text?</font id='Verdana'>  Replies
 Replied 05 Jun 2002  18:02:45 
   05 Jun 2002  18:02:45 Jeremy Conn replied: 
    Replied 05 Jun 2002  18:49:10 
   05 Jun 2002  18:49:10 Chris Mr. replied: 
  I'm using Access.
thanks for any help!
  thanks for any help!
 Replied 05 Jun 2002  21:36:38 
   05 Jun 2002  21:36:38 Jeremy Conn replied: 
  How are you adding this info to the DB? Is how you are inputing getting rid of the HTML code?
'Text' should work also... but try setting your field as a 'Memo' field using the Display View in Access. Then when you output to your page, it should output exactly as you input.
(UD4|IIS5|WXP|ASP)
*Connman21*
www.conncreativemedia.com
  'Text' should work also... but try setting your field as a 'Memo' field using the Display View in Access. Then when you output to your page, it should output exactly as you input.
(UD4|IIS5|WXP|ASP)
*Connman21*
www.conncreativemedia.com
 Replied 06 Jun 2002  00:34:06 
   06 Jun 2002  00:34:06 David Thomas replied: 
  Like Conman said, make your field a memo and then enter your code with tags included to get it display as html.
Access will ignore returns in text unless specified by a P or BR tag
"Nobody ever said this stuff was easy"
  Access will ignore returns in text unless specified by a P or BR tag
"Nobody ever said this stuff was easy"
 Replied 07 Jun 2002  03:13:18 
   07 Jun 2002  03:13:18 Chris Mr. replied: 
  I think the field is set to MEMO not text, and includes a few <BR>'s but when retrieving the data its printing out the code in the web page. So I get a bunch of <BR>'s in the text instead of linebreaks. I got around this by located a bit of code that converts <BR> in db field to the appropriate character but i dont think this should be necessary for every bit of html. 
My next project will require html retrieved from database (links, etc) so I am trying to figure out how to do.
SO...if I understand correctly. What you all are saying is the FIELD in the db needs to be set to MEMO not text and it should work? Do I need to set the FORMAT in the recordset in ? I noticed there is something for html encoding ?
thx
GrillCheese
  My next project will require html retrieved from database (links, etc) so I am trying to figure out how to do.
SO...if I understand correctly. What you all are saying is the FIELD in the db needs to be set to MEMO not text and it should work? Do I need to set the FORMAT in the recordset in ? I noticed there is something for html encoding ?
thx
GrillCheese
 Replied 07 Jun 2002  19:28:16 
   07 Jun 2002  19:28:16 Jeremy Conn replied: 
  I don't think we were saying exactly that, because it really depends on a bunch of things.
Based on what you said about all your tags being in the DB fine, just not showing up on your page...
In your Data Bindings Panel, locate the field that you are trying to display as HTML... then move over to the right where there are some pulldowns for more options (sorry, I am doing this from memory as I am away from my PC)... in one of those pulldowns, select the option 'HTML.Encode' and then rechcek your page - that should do the trick.
(UD4|IIS5|WXP|ASP)
*Connman21*
www.conncreativemedia.com
  Based on what you said about all your tags being in the DB fine, just not showing up on your page...
In your Data Bindings Panel, locate the field that you are trying to display as HTML... then move over to the right where there are some pulldowns for more options (sorry, I am doing this from memory as I am away from my PC)... in one of those pulldowns, select the option 'HTML.Encode' and then rechcek your page - that should do the trick.
(UD4|IIS5|WXP|ASP)
*Connman21*
www.conncreativemedia.com
 Replied 09 Jun 2002  01:27:02 
   09 Jun 2002  01:27:02 Chris Mr. replied: 
  Thanks for the responses guys, I appreciate it.
GrillCheese
  GrillCheese
