Forum Moderators: coopster
Depends on what you need, both methods are fairly staright forward.
db
more initial setup, less ongoing management time
static content with includes
quick to setup, more management time
regarding database logic...
how would i display a page of paragraphs and appropriate pictures? would each paragraph and appropriate picture have its own field in the DB, and i would access each one individually, or would i save the whole of the content in one field, e.g.
<p>some text
<img src="some.jpg"></p>
<p>some more text
<img src="some.jpg"></p>
<p>even more text
<img src="some.jpg"></p>
etc?
many thanks
That said, do you always have 3 or less paragraphs and 3 or less images? Is there a standard format for every page in regards to the content?
For example, if you have 3 paragraphs and 3 images the majority of the time and no more ever then you may want 3 content columns and three columns for the paths to the images.
You could also store the whole thing in one big column called content too. There really isn't a standard, it can be done both ways. The most important thing is to make it easy to update and fast for serving the pages.
i have however just been playing with htmlarea, which would be ideal for non-tecchies to update content pulled from a database, so it would probably make more sense for me to put everything in one field.
i think i'm just gonna have to bite the bullet and go for it.
the more i get into php/mysql the more i find out that their really is TMTOWTDI - i do love that ananana.. whatsit ;-)
many thanks jatar_k!