That error usually comes when you miss off a } somewhere, as 0beron said. I find it easier to work with PHP when I ident by a certain amount of spaces each time, such as:
PHP Code:
if($blah=="Yes"){
echo "Yes!!";
}else{
if($Yeah=="yup!"){
echo "Yup!";
}else{
echo "Nope!";
}
}
This way I can always see how many brackets I need to add at the end. DreamWeaver is good for this, as you can just press Tab to indent by about 10 spaces, which is a good amount of spotting the missing bracket.
Also, another good habit is writing your code like this:
PHP Code:
if($blah == "Yes!"){
Then
PHP Code:
if($blah == "Yes!"){
}
Then
PHP Code:
if($blah == "Yes!"){
//Whatever your code is here
//And here
//And here
}
Notice that I added the "}" as soon as I finished the if(), that way if I get caught up with my coding I *cant* forget to close brackets.
Just some hints 
|