I’m trying to include a file “menu.inc” into my page, and when I go to the test page I set up it returns:
“Parse error: parse error in /home/xxviiine/public_html/menu.inc on line 3”
I know nothing about php but would the space in "$menuArray[$i] " make a difference? Also, why are you doing your navigation like that? Is there any particular reason?
The space isn’t the problem. The problem should be somewhere on line 3… but I just can’t seem to place it.
I’m doing the menu like this becaues it is for a tutorial site and there will potentially be hundreds of pages so If I need to make even a minor adjustment to the menu I only have to edit one page as apposed to like 100.
Well if PHP debugging is anything like ASP debugging, even though it says that it is on line 3 doesn’t necessarilly mean that. I wish I could be of more help but I have no freaking clue about PHP.
I understand the include part but why are you putting the menu links into an array?
They’re in an array so I can easily add items and it will still put them into the menu with the for loop.
Thanks for helpin out so far… at least now I know it could be on a different line.