K... im just going to ignore ur post somewhat... and just explain how to use php to optimize your work time.
This is considered to be an industrial method used for professional programmers
Create 2 files....
lets call the first one top.php
//file::top.php
//include all of your top information, leading to your content. for example, <table><tr><td>
The next is bottom.php
//file::bottom.php
//include all of your ending structures and code. for example </td></tr></table>
Now... how to use this...
let's say its your index... // note php only loads on .php file extentions, unless you modify your php scripts, in which case you will probably need to have your own server to do.
<?php include("top.php");?>
<!-- content -->
BLah blah blah, welcome to this site... blah blah blah
<?php include("bottom.php");?>
Another industrial method... but one i don't like because it has severe limitations is...
//file::template.php
//top design
<?php echo $content;?>
//bottom design
your index would be...
<?php
$content = "BLah blah blah, welcome to this site... blah blah blah";
include("template.php");
?>
Here is another method, this one is something newbies use.
//file::loadFunctions.php
function loadContent()
{
echo "Content";
}
//file::index.php
<?php
include("loadFunctions.php");
loadContent();
?>