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