Voor school hebben we de opdracht gekregen om een portfolio-website te maken. de website heb ik opgedeeld in een header & footer bestand (.php)

De navigatiebalk heb ik ge-include in het header bestand, wanneer ik de navigatie op de directe link bezoek werkt deze zonder problemen, wanneer ik de website bezoek waar de navigatie in verwerkt is doet deze niks, ook heb ik verschillende navigaties geprobeerd vanaf internet en heb ik het zelfde probleem..

Waar kan dit e.v.t aan liggen?

Header bestand:

<head>

<link rel="stylesheet" type="text/css" href="css/01/style.css">
<script type="text/javascript" src="js/dropdown.js"></script>

<STYLE TYPE="text/css">
<!--
BODY { background: url(images/01/bg2.gif) repead }
-->
</STYLE>

</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<center>
<table id="Table_01" width="900" height="1001" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="11">
<img src="images/01/header.png" width="900" height="105" alt=""></td>
</tr>
<tr>
<td colspan="11" background="images/01/navigatiebalk.png">
<?php
include('includes/navigation.php');
?></td>
</tr>
<tr>
<td colspan="11">
<img src="images/01/header_website_information.png" width="900" height="180" alt=""></td>
</tr>
<tr>
<td>
<img src="images/01/layout_04.png" width="50" height="77" alt=""></td>
<td colspan="3">
<img src="images/01/layout_05.png" width="560" height="77" alt=""></td>
<td colspan="2">
<img src="images/01/layout_06.png" width="39" height="77" alt=""></td>
<td colspan="4">
<img src="images/01/layout_07.png" width="194" height="77" alt=""></td>
<td>
<img src="images/01/layout_08.png" width="57" height="77" alt=""></td>
</tr>
<tr>
<td background="images/01/layout_09.png">
<img src="images/01/layout_09.png" width="50" height="326" alt=""></td>
<td colspan="3" bgcolor="#D1CFC0" valign="top">




Navigatie bestand (van internet):

<div id="PLHFOKGXGMaDDiv" style="width:768px;height:59px;position:relative;z-index:50;">
<div style="width:768px;height:31px;background-color:#445878;text-align:left;">
<ul style="margin:0;padding:0px;width:768px;height:31px;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;">
<li style="display:block;float:left;width:128px;height:31px;text-align:center;background:#31353d url(.nl/Pluginlab/arrow1.gif) no-repeat 115px 50%;"><a style="display:block;padding:9px 19px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Products</a></li>
<li style="display:block;float:left;width:128px;height:31px;margin-left:0px;text-align:center;background:#31353d url(.nl/Pluginlab/arrow1.gif) no-repeat 115px 50%;"><a style="display:block;padding:9px 19px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Support</a></li>
<li style="display:block;float:left;width:128px;height:31px;margin-left:0px;text-align:center;background-color:#31353d;"><a style="display:block;padding:9px 6px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Downloads&nbsp;</a></li>
<li style="display:block;float:left;width:128px;height:31px;margin-left:0px;text-align:center;background:#31353d url(.nl/Pluginlab/arrow1.gif) no-repeat 115px 50%;"><a style="display:block;padding:9px 19px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Tutorials</a></li>
<li style="display:block;float:left;width:128px;height:31px;margin-left:0px;text-align:center;background:#31353d url(.nl/Pluginlab/arrow1.gif) no-repeat 115px 50%;"><a style="display:block;padding:9px 19px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Purchase</a></li>
<li style="display:block;float:left;width:128px;height:31px;margin-left:0px;text-align:center;background:#31353d url(.nl/Pluginlab/arrow1.gif) no-repeat 115px 50%;"><a style="display:block;padding:9px 19px 0px 6px;text-decoration:none;color:#eeeff7;" href="#">Company</a></li>
</ul>
</div>
<div style="width:768px;height:28px;background-color:#445878;text-align:left;"></div>
<script type="text/javascript">var PLHFO_ID="PLHFOKGXGMaD"</script>
<script type="text/javascript" src="scripts/PLHFO3.js">/* PLHFOMenu script ID:PLHFOKGXGMaD */</script>
</div>
Het bestand navigation.php staat in de map includes. De links in het bestand navigation.php moeten zijn, alsof je een map hoger bent, omdat hij daar geinclude wordt.
Check de paden naar je pagina's even.
Bedankt Jan voor je reactie, maar 't werkt helaas niet..

@ Evert, naar mijn inzien kloppen deze..
Laat de code van navigation.php eens zien?
Pas je post even aan en gebruik [ignore]
 en 
[/ignore] tags om je code heen. Om php code zet je uiteraard dit:<?php en ?>Gebruik je knop om dit te doen.

SanThe.
Jan Koehoorn schreef op 29.10.2008 21:53
Laat de code van navigation.php eens zien?


Die staat al in het bericht :)
Frederik schreef op 29.10.2008 22:49
Die staat al in het bericht :)

Ja, maar onleesbaar.
't is opgelost :)
En de oplossing is...?

Het is zeer wenselijk om ook de oplossing te vermelden voor je medeforumleden. Kunnen die er misschien nog wat van leren.

Reageren