I am trying to include a header which i made separately into my index page. When I try to include and run it, it does not display the header that I made although the paths are all correct. please help me on this. thanks. I am a newbie in php, css and html.
Here is the link for pictures and codes: http://www.fileden.com/files/2011/7/27/3174077/My_Documents/Folder.rar
include code:
</head>
<body>
<div id="main_container">
<div>
<?php
include 'include/header2.php';
?>
</div>
<div class="main_content">
<div class="menu">
<ul>
<li><a class="current" href="../../index.php">Home</a></li>
<li><a href="module/jo.php">Job Orders<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
so on and so forth…
Yeah, turn on error reporting and see what php is telling you. You can also try to give an absolute path for your include, like:
It’s not really advisable to use absolute paths like this, but it might help you find out what exactly is going wrong.