Jump to content

Archived

This topic is now archived and is closed to further replies.

Cell0518

Using templates in advanced settings...

Recommended Posts

Hi,

I am looking to better organize my site's code and I'm looking at templating.

I've run into a few questions:

looking at my current layout (below)
[b]Home Page[/b]
[img]http://ftp.chrisloveonline.com/dslr-1.jpg[/img]

A lot of my data is being pulled from the same database, using several MySQL queries.  Tables are being used in a lot of the overall page layout with 3 separate tables (one each for header, overall content and footer), with the center table having 3 columns (blue borders showing each).

All 3 tables are consistent with the entire site (other than forum / gallery).  Most of the pages are only using the center column, with the home page being the exception.  I'm looking for a good way to clean up my code, as a lot of the html formatting for the results of the queries is just echoed.

[code]for($total_number,$number,$number++) { echo "<b>".$query1_array['title']."</b>"; }[/code]

I feel I must be over complicating this, as it seems like a very large task.

Can someone point me in the right direction on a tutorial / example that would help me?

Thanks for you time,
Chris

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.