PDA

View Full Version : <?php include ("navigational.inc"); Help



icu222much
27 Jul 2008, 06:04 PM
I have constructed a website using HTML and CSS. Like most websites, my site will have a navigational bar. Since I will have a few dozen pages on my website, I was looking for an effective way to manage my navaigational bar.

I read about using PHP to help control my navigational bar. With Wickham's help, he taught me to use:

<?php include ("navigation.inc");

which references my original navigational code to an external file. This way, I only need to edit one file to change my navigational bar on all of my pages.

The problem is that I have substituted my coding properly but the formating of my website is messed up. When I open my website in IE, my website is not centered to the page, and the navigational links are stretched. This did not happen with my original code without the PHP substitution.

I am wondering, that if I am to substitute <?php include ("navigational.inc"); in my coding, is there a possibility that it will cause formatting issues?

icu222much
27 Jul 2008, 10:04 PM
Problem fixed.

Turns out that I was using HTML comments within my PHP file.

Took me 4 hours to debug ! ... grrrr