And that is why I started this thread, because I am coming to the same conclusion. 
You are presently bundling all this “knowledge”, or data, and meta data as plain and simple text thus rendering it inert.
That is a bad design decision, architecturally speaking.
I agree.
As things are, OK its pre-formatted, and you say that suits you because you can move things around in your text and totally customize each and every page.
If that is your criteria, then stay as you are, but honestly you might as well be editing the html using Frontpage.
I don’t think you are following me…
I want every Article to be “semantically” correct, and thus marked up using proper HTML that would make the SitePoint HTML/CSS Forums proud of me!!
So that means wrapping everything in proper HTML tags like <h2>, <p>, <br />, <li>, and so on. (I don’t want to upload an Article in a web form and have the browser insert New Line (
) characters where there should be something like a <p> or <br />.)
I am sure I could write some complex program to take my Article and convert it to “proper” HTML, but considering the CRAP that most WYSIWYG Editors produce, that is hard to fathom!! As such, it is MUCH EASIER to compose things in OpenOffice, then paste it into NetBeans, and add my own HTML tags as I see fit…
To me, that shouldn’t be seen as “strange” or “radical”, although I’m sure some see that process as crazy…
Your concern about using more db requests for fear of stopping your server is misguided. This is what the LAMP stack is designed to do.
Just being sure…
If or when you decide that your server really cannot take any more, then you start looking at using caching – where you “bake” a version of your html (or part of it) and store it as a html file on the hdd ready to be served up with no further processing.
On a side note, so if I have a Web Page with the following components…
- Header with User’s First Name, # of New Messages, # of Friend Requests
- Left Nav with Upcoming Conferences
- Center Area with Listing of Articles
…and I used 3 separate SELECTs for the Header, 1 SELECT for the Left Nav, and 1 SELECT for the Center Area, then that wouldn’t be bad?
It seems to me your current set up is actually holding a cache of the guts of your page at the moment, so you have in fact got the worst of both worlds.
You lost me.
Now, all the above is fine and good if you just want images appearing in the same place on the webpage, or if you want to drive a slide show.
Again, what I am trying to say is that every Article will have a slightly different layout. For example, Article #1 might start off with an Image followed by Text that floats around it. Article #2 might have No Images. Article #3 might have 3 Images, plus a Graph, and an Illustration.
In each Article, the Text, Paragraphs, and Image Layout would vary.
As such, you couldn’t easily write a script to take my uploaded Article and create the HTML I really want. (That is why I like doing things manually.)
Step #1: I would write the Article in OpenOffice…
Time is Money!
When Office Managers are looking for places to save money, postage probably isn’t the first thing that comes to mind. However, just a few trips per week to the Post Office can cost your small-business more in lost productivity and money than you think!
More Affordable than Appears
A lot of people would guess that owning a Postage Meter is expensive but that isn’t the case. First of all, you normally would lease one from the Post Office…
Step #2a: I would mark it up manually in NetBeans…
<h2>Time is Money!</h2>
<p>When Office Managers are looking for places to save money, postage probably isn't the first thing that comes to mind. However, just a few trips per week to the Post Office can cost your small-business more in lost productivity and money than you think!</p>
<h2>More Affordable than Appears</h2>
<p>A lot of people would guess that owning a Postage Meter is expensive but that isn't the case. First of all, you normally would lease one from the Post Office...</p>
Step #2b: I would add in the HTML for an Images…
<img class="noborder" src="/images/PostageMeter.png" width="150"
alt="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons."
title="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons." />
<h2>Time is Money!</h2>
<p>When Office Managers are looking for places to save money, postage probably isn't the first thing that comes to mind. However, just a few trips per week to the Post Office can cost your small-business more in lost productivity and money than you think!</p>
<h2>More Affordable than Appears</h2>
<p>A lot of people would guess that owning a Postage Meter is expensive but that isn't the case. First of all, you normally would lease one from the Post Office...</p>
Step #3: I would paste it into the “body” field of my “article” table using phpMyAdmin.
(So the Image is “embedded” in my HTML which is stored in MySQL. Follow me?!)
If the only person doing this authoring is you, then you can do what you like.
<p>some text</p>
<?php getImage(1001, "Customized ALT text for a goat is here"); ?>
<p>some more text</p>
But my Article is stored in MySQL, so how would your example above help me out? You certainly aren’t implying I copy everything above (i.e. HTML and PHP) and stick it in my “body” field, are you? 
BTW, were you able to check out the other thread I mentioned?
Maybe I can modify that approach, so that I replace an “Image Placeholders” with “Image HTML”?
Thanks,
Debbie