Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Nearly Finished Site but php include help needed

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Watch

max99

Established Member
Impact
0
Hey

I've got a site and want to use php includes to include the header, left bar and right bar, as well as a footer at the bottom. Ive made the parts of the site individual pages such as header.php and leftbar.php etc and made an index.php but they don't appear in the correct places.

Anyone able to help :) ?

It maybe to do with css i use apparently.

TIA

Max
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
How about a link?

or at least the css.

:?
 
0
Close
yea, we need some form of clue as to the code, or at least the link!
 
0
Close
sorry. My Mobile Phones (. co . uk)

domain /styles.css for css

Thanks
 
0
Close
The source code of the website is completly waked . First in the included files you don`t need the html , body tags , you only need the table tags .

Second , in your index.php before include tag you have this:

Code:
<div align="left">

You need to assign a css class for this and add it in the css file to work , that`s the real problem of your site . Also in your css file you don`t have any code to assign it to the sidebars , center etc .

Please visit http://www.w3schools.com/css/default.asp , http://www.csstutorial.net/ or google css tutorial for more informations on how to do that .

Or more simple if you don`t know css use table tags its more easyer, something like :

Code:
<table width="" cellspacing="x" cellpadding="x" align="centeR">
<tr>
<Td width="x" valign="top">
<?php include('left.php'); ?>
</td>
<Td width="x" valign="top">
<?php include('center.php'); ?>
</td>
<Td width="x" valign="top">
<?php include('right.php'); ?>
</td>
</tr></table>

This is a simple way , you should try it .

Best regards,
Iulian
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back