Cell0518 Posted September 22, 2006 Share Posted September 22, 2006 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 https://forums.phpfreaks.com/topic/21661-using-templates-in-advanced-settings/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.