-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?

  • 1
    [Why not upload images of code on SO when asking a question?](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-on-so-when-asking-a-question) – Andreas Sep 06 '19 at 02:25
  • Show us the whole code. – Francis G Sep 06 '19 at 02:34
  • Code share we not god – dılo sürücü Sep 06 '19 at 02:36
  • It’s not that the curly brace is wrong; it’s just not expecting it there/yet. Look before the brace to find the problem. Hint: it’s what’s missing just before the brace. And, BTW, do check out the link above. It’s amazingly prescient. – Tim Morton Sep 06 '19 at 03:04

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
  • 533
  • 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.
  • 4,071
  • 2
  • 19
  • 66