Jump to content

Using templates in advanced settings...


Cell0518

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.