When I use a PHP include, (in this case i'm including header.php) it adds it twice. (there's two headers now).
There can't be anything wrong with the PHP
( <?php include "header.php"; ?> ) or my header code (as it's only the code for one..).
Thanks

When I use a PHP include, (in this case i'm including header.php) it adds it twice. (there's two headers now).
There can't be anything wrong with the PHP
( <?php include "header.php"; ?> ) or my header code (as it's only the code for one..).
Thanks
You haven't put the include on header.php too have you?
No I haven't. Here's header.php:
PHP Code:<?php
echo '<div class="header">
<div class="logo"></div>
<div class="search"><input type="text" class="search_text" /></div>
</div>';
?>
Erm.
Hm. And the page where the include is supposed to show? Seeing as there is no obvious faults with header.php?![]()
It's only there once.
Haha, nevermind fixed it.
Edited by Meti (Forum Moderator): Please do not double post, when you simply can edit your first post.
Last edited by Meti; 31-10-2008 at 03:02 PM.
Lol ok. What was it![]()
I had included config.php, but forgot that the contents inside it were those of header.php.
Want to hide these adverts? Register an account for free!