Jump to content

problem laying out php includes


Kr0nZ

Recommended Posts

Hi i am fairly new to php and seem to be having a problem using <php includes>

 

This problem had boggled me for the last few hours now and finally came to try and seek help

 

what i am trying to do is have a php index page that imports my header, footer, navbar and main content from other php files

 

this is the code i am using:

    <body>
    
    <div class="indexcontainer">
    
    <?php include('header.php'); ?>
    
    <table width="900" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="26" background="images/index20.jpg" > </td>
            <td width="162"><?php include('lsidebar.php'); ?></td>
            <td><?php include('content.php'); ?></td>
        </tr>
    </table>
    
    <?php include('footer.php'); ?>
    
    </div>
    
    </body>

 

this doesnt display the way i want instead of 'images/index20.jpg' 'lsidebar.php' and  'content.php' appearing in the table under the header, images/index20.jpg takes up more space that i set, i set it to 26, it really takes up 123, and it pushes my content.php of the page i guess(i dont know how to fix this) :confused: :confused:

 

images/index20.jpg- is a border image that i need to extend down to the bottom of page but above the footer, i had this working before but i had the border image included in with the navbar.php file, but it wouldnt extend to bottom of page

 

im probably doing this wrong way, i hope someone can point me in the right direction

Link to comment
https://forums.phpfreaks.com/topic/227595-problem-laying-out-php-includes/
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.