![]() |
unexpected T_ELSEIF in ...
I'm having a little problem at figuring this out:
Code:
function myMenu() //Creates a menu with a class current to the current page itemAny help sorting this out appreciated! |
I think is with your if and elseif which need to be paired together. (without any other code inbetween the two).
for example: PHP Code:
LC. |
As LC says, you need to put the code inside the { and } braces. This is your code:
Code:
if ((curPageName() == $url) && (curPageName() !== $index)) { |
OK so I changed it a bit to this:
Code:
function myMenu() //Creates a menu with a class current to the current page itemThank you! |
If that is the case, it would seem your elseif statement is always executing.
Can you post your code for the curPageName() function? Maybe it could be the return value? Kind regards, LC. |
| All times are GMT +1. The time now is 01:40 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.