<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1005905" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1005905</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031501</link>
    <description> &lt;p&gt;Finally back after beind unable to connect for a couple of days...arghh.&lt;/p&gt;
&lt;p&gt;Thanks all for your comments.  I finally went out today and bought an ASP book.  Looks like it should work, no problem.  Also looks like ASP is very similar to ColdFusion in functionality, so it may be easy to pick up quickly.&lt;/p&gt;
&lt;p&gt;[What I&#039;ve got is a large &quot;freeform&quot; memo field for each paragraph of text, and want to include formatting stuff, like bold, underline and color, using the HTML tags in the actual database for ease of output.]&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
 </description>
     <pubDate>Fri, 21 Apr 2000 06:33:00 +0000</pubDate>
 <dc:creator>KLWong</dc:creator>
 <guid isPermaLink="false">comment 1031501 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031500</link>
    <description> &lt;p&gt;Ralph,&lt;/p&gt;
&lt;p&gt;I agree, your example clearly illustrates the benefits, I&#039;m just not sure how structured KLWong&#039;s data is.&lt;/p&gt;
&lt;p&gt;If it&#039;s just a matter of a handful or two of pages I would probably stick with the database embed (especially if your data isn&#039;t structured)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Apr 2000 20:21:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031500 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031499</link>
    <description> &lt;p&gt;For example, if you have a membership list with names, addresses, etc. in it, I&#039;d suggest storing the data as:&lt;/p&gt;
&lt;p&gt;Name: John Smith&lt;br /&gt;
Address: 1 Center St.&lt;br /&gt;
Town: Anytown&lt;br /&gt;
Country: USA&lt;/p&gt;
&lt;p&gt;Rather than:&lt;/p&gt;
&lt;p&gt;Name: &amp;lt;B&amp;gt;John Smith&amp;lt;/B&amp;gt;&lt;br /&gt;
Address: &amp;lt;I&amp;gt;1 Center St.&amp;lt;/I&amp;gt;&lt;br /&gt;
Town: &amp;lt;FONT SIZE=-1&amp;gt;Anytown&amp;lt;/FONT&amp;gt;&lt;br /&gt;
Country: &amp;lt;H3&amp;gt;USA&amp;lt;/H3&amp;gt;&lt;/p&gt;
&lt;p&gt;There is a widespread notion that content and formatting should be separate; not only in coding to HTML 4.0 standards, but also in database theory.&lt;/p&gt;
&lt;p&gt;I don&#039;t know what you&#039;re using to generate your static web pages, but if you want to generate a simple page for each member, you would do this:&lt;/p&gt;
&lt;p&gt;print &amp;lt;B&amp;gt;Name&amp;lt;/B&amp;gt;&lt;br /&gt;
print &amp;lt;I&amp;gt;Address&amp;lt;/I&amp;gt;&lt;br /&gt;
print &amp;lt;FONT SIZE=-1&amp;gt;Town&amp;lt;/FONT&amp;gt;&lt;br /&gt;
print &amp;lt;H3&amp;gt;Country&amp;lt;/H3&amp;gt;&lt;/p&gt;
&lt;p&gt;Now lets say you want to change your Town to be normal sized; simply change your program to remove the &quot;size=-1&quot; line. You don&#039;t have to update all the records in your database.&lt;/p&gt;
&lt;p&gt;This works if your data is atomic in nature -- in other words, one piece of data per database column. If you&#039;re storing full text in the database, then you have a different problem which probably requires storing HTML tags. But perhaps you want to store style markers instead so that you can change the styles in your stylesheet which will have the effect of changing the presentation without having to change your data.&lt;/p&gt;
&lt;p&gt;Ralph&lt;br /&gt;
 &lt;a href=&quot;http://www.hockeydb.com&quot; class=&quot;bb-url&quot;&gt;http://www.hockeydb.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Apr 2000 19:56:00 +0000</pubDate>
 <dc:creator>Ralph Slate</dc:creator>
 <guid isPermaLink="false">comment 1031499 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031498</link>
    <description> &lt;p&gt;Ralph,&lt;/p&gt;
&lt;p&gt;That&#039;s an option as well, but I think all the HTML would have to conform to roughly the same sort of output otherwise you would be changing a lot more than 2 lines of code.&lt;/p&gt;
&lt;p&gt;If the HTML you&#039;re saving is all completely different from each other (not related data or structure wise) then this would be hard to do.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Apr 2000 19:21:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031498 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031497</link>
    <description> &lt;p&gt;I did the same thing; however instead of embedding the HTML in the database, I embedded it in the &quot;export&quot; program.&lt;/p&gt;
&lt;p&gt;That way if I needed to change something, instead of doing a database change that might have to update a few thousand records, I updated a couple of lines of code.&lt;/p&gt;
&lt;p&gt;There are definitely instances when I embedded the HTML in the database; usually when storing &quot;articles&quot;. That was easier. But if the data column contains pure data (a number, for example), it might be easier to put the HTML in the program that generates your page.&lt;/p&gt;
&lt;p&gt;Ralph&lt;br /&gt;
 &lt;a href=&quot;http://www.hockeydb.com&quot; class=&quot;bb-url&quot;&gt;http://www.hockeydb.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 18 Apr 2000 14:58:00 +0000</pubDate>
 <dc:creator>Ralph Slate</dc:creator>
 <guid isPermaLink="false">comment 1031497 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031496</link>
    <description> &lt;p&gt;Sorry I&#039;m being so confusing!  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m eventually going to put up a searchable database on my website (no point in giving you a URL here, hosting company is dragging their feet getting it set up).  However, my plan is to first put up static HTML pages which I will extract from the database first, while I get the whole thing set up. Then I&#039;ll convert it to the dynamic, searchable site that is my ultimate plan.&lt;/p&gt;
&lt;p&gt;Trying to take one step at a time here, since it&#039;s my first site (beyond posting kid pictures!).&lt;/p&gt;
&lt;p&gt;I&#039;m trying to embed some HTML into the database because I want my ongoing site maintenance to be 90% database updates while the pages themselves are rarely changed.&lt;/p&gt;
&lt;p&gt;Clear as mud?  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;(I will post the URL as soon as it works!)&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Apr 2000 21:52:00 +0000</pubDate>
 <dc:creator>KLWong</dc:creator>
 <guid isPermaLink="false">comment 1031496 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031495</link>
    <description> &lt;p&gt;KLWong,&lt;/p&gt;
&lt;p&gt;I&#039;m a little confused, what do you want to use the save html for? Are you pulling it out of the database to display it in a web page or are you using it for something else?&lt;/p&gt;
&lt;p&gt;The Server.HTMLEncode method will take a string and convert it, so spaces will turn to &quot;*nbsp&quot; etc., but if you&#039;re using this for display in a web page then that is fine since it will display perfect. So in theory if I took the output of a Server.HTMLEncode string and pasted it into a web page it would display the same as the source.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
&lt;p&gt;[This message has been edited by Peter J. Boettcher (edited 17 April 2000).]&lt;/p&gt;
&lt;p&gt;[This message has been edited by Peter J. Boettcher (edited 17 April 2000).]&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Apr 2000 19:31:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031495 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031494</link>
    <description> &lt;p&gt;Well, sort of along the lines of &quot;start with what you know&quot;, I&#039;ve so far been exporting my tables to static HTML files.  Also since I do much of my development during &quot;dead times&quot; at work, and I&#039;m not allowed to install any software on their PC, I&#039;ve not started trying ASP output yet.  (Can&#039;t install Personal Web Server to view the pages generated.)&lt;/p&gt;
&lt;p&gt;I did try the &quot;Save as ASP&quot; option on my query and then looked at the text output with an editor.  I see it put out &amp;lt;%=Server.HTMLEncode(rs.Fields(&quot;Description&quot;).Value)%&amp;gt; without me doing anything special.  Will this output allow my embedded HTML tags to be properly interpreted (rather than converted)?&lt;/p&gt;
&lt;p&gt;Thanks, Peter!&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Apr 2000 17:38:00 +0000</pubDate>
 <dc:creator>KLWong</dc:creator>
 <guid isPermaLink="false">comment 1031494 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/embed-html-database-fields#comment-1031493</link>
    <description> &lt;p&gt;KLWong,&lt;/p&gt;
&lt;p&gt;Are you using ASP? If your are just use Server.HTMLEncode(Request.Form(&quot;FormField&quot;))&lt;/p&gt;
&lt;p&gt;This should preserve everything.&lt;/p&gt;
&lt;p&gt;It&#039;s ok if it looks like gibberish in the database, when you pull it back out it will be in the proper format (source code).&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Peter J. Boettcher&lt;/p&gt;
&lt;p&gt;[This message has been edited by Peter J. Boettcher (edited 17 April 2000).]&lt;/p&gt;
 </description>
     <pubDate>Mon, 17 Apr 2000 04:35:00 +0000</pubDate>
 <dc:creator>Peter J. Boettcher</dc:creator>
 <guid isPermaLink="false">comment 1031493 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
