plik top (skrucona wersja)
<!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" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title>GITS</title>
<link rel="stylesheet" href="menu.css" />
<link rel="stylesheet" href="bok.css" />
<style type="text/css">
XXXXXXXXX
</style>
</head>
<body>
XXXXX
<ul>
<li class="bg"><a href="index.php">Strona główna</a>
</li>
<li class="bg"><a href="#">O nas</a>
<ul>
<li class="bg"><a href="index.php?id=1">xxx </a> </li>
<li class="bg"><a href="index.php?id=2">xxxx</a></li>
</ul>
</li>
</ul>
i to do czego podpinam top
<?php
require_once 'conn.php';
require_once 'top.php';
?>
<div class="">
</div>
<div id="main">
<?php
if (isset($_GET['id'])) { $tekst='';
$sql = "SELECT * " .
"FROM tekst " .
"WHERE id='" . $_GET['id'] . "' ";
$tekst = $row['tekst'];
}else{
}
?>
</div>
<?php
require_once 'leftblock.php';
require_once 'foot.php';
?>