Jump to content

Php Template Support And Tips!


devilsvein

Recommended Posts

Hey guys, i decided to create a template which consists of my banner, css sheets, background and a menu bar!

 

Now I want this to be shown on every page.....which is what its doing.

 

for example I have on a page of mine

 

whydonateblood.php

 

<?php 

<?php
session_start();
require "outerheader.php";
require "corefolder/enginecore.php";
?>

 

Just displaying that out on a page shows the background navigation etc. In simple terms the header template is shown! (so proud of myself! :) )

 

So now I want to actually start on the content of the page.

 

I did....

 


<?php
session_start();
require "outerheader.php";
require "corefolder/enginecore.php";
echo "<table width='500px' bgcolor='white'>
<tr><td>HI</td></tr>
</table>";
?>

 

But the table starts BELOW the last section of the header...

 

to describe my page...i have a banner going across at the top...

 

a navigation bar on the left hand side. and background in well background

 

the header page consists of a container.......

 


<body>
<div align="center"><img src=background.jpg class='bg'></div>
<div class="container">

<div class="bannimage">
<img src='newbann.png' />
       </div>
 <div class="mainmenu">
<?php
echo displayMenu();
?>
 </div>
</div>
</body>

 

so my question is how can I get the contents of my page....in the correct position in my header template.

Link to comment
https://forums.phpfreaks.com/topic/272555-php-template-support-and-tips/
Share on other sites

Archived

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

×
×
  • 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.