-1

There is an unexpected '{' but it looks like there is nothing wrong?

I have removed the curly bracket completely and the echo but did nothing when I put it back in.This is the Error Message

I am not sure what the output is sorry?

2 Answers2

0

You're missing a closing parentheses at the end of line 2. Make sure that every opening parentheses has a corresponding closing parentheses. In the case of an if statement the round parens should end before you place any curly parens.

if(condition && (otherCondition)){
 code to execute;
}
Sam Schantz
  • 473
  • 1
  • 4
  • 7
0

You're missing a parenthesis after the isset - which is throwing your error. Simple fix:

if(condition && isset($_SERVER["PHP_AUTH_PW"])){
    . . .
}

Also, in the future, please paste your code in the original post as a code block - not an image. It helps other users debug your code.

GROVER.
  • 3,376
  • 1
  • 16
  • 57