this currently whats in top.php,
Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>dddd.com</title>
<link href='styles/main.css' rel='stylesheet' type='text/css'></link>
<style type='text/css'>
<!--
body{
background-color: #E2DECF;
}
-->
</style>
</head>
<body>
<div id='wrapper'>
<div id='header'><a href='http://www.dddd.com/'><img src='images/logo.png'></img></a></div>
<div id='nav'>
<a href='#'>Home</a><a href='#'>Link</a><a href='#'>Link</a><a href='#'>Link</a><a href='#'>Link</a>
</div>
<div id='content'>
bottom.php has the following,
Code
</div>
<div id='footer'>
<a href='source_code.php'>Source Code</a>
</div>
</div>
</body>
</html>
and index.php which is in my dddd.com folder is,
Code
<?php require("styles/top.php"); ?>
<div id='full'>content here</div>
<div id='left'>left side</div>
<div id='right'>right side</div>
<?php require("styles/bottom.php"); ?>
Now for some reason my index.php file is not linking the top.php and bottom.php files together so that it still looks as if the code was all in index.php.
I was following a youtube tutorial on how to link the seperate pages together and it looks like I have everything correct. But for some reason it just shows the code when I run index.php.
I can give donations for help.