I guess your forum name completly belies your actual coding skill, in the way that SEO & expert/guru/[insert place name] does.  and you are just learning about databases and how to construct and use them.
The first thing to learn is; Size is expensive in terms of disk space and retrieval times and anything you can do to reduce that will pay big dividends as systems grow.
Text fields in database tables are just that, text.
The text stored there can take any form the programmer/DBA needs, HTML, javascript or even just plain old boring text.
I prefer to store textual data to be represented as HTML in a "BBCode" form, that is in the same way that forums do by using markup tags/placeholders that are replaced by HTML code on display.
so
Code:
<span style="color:red;background-color:yellow;font-size:20px;">This is highlighted with red on yellow</span>
would be stored in the field as
Code:
[hl st="r;y;20px;"]This is highlighted with red on yellow[/hl]
Then the data is parsed and the markup replaced as the output is streamed to the user agent.
Saves space in the database and makes updating the look of the pages easy.
Creating static pages is not required. You just create a navigation system and one page handles everything just like forums, blogs, CMS systems etc do.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 08-30-2007 at 06:31 AM..
|