How do i correct syntax error?

PHP Error - Need Help - Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'?

  • I'm having some trouble figuring out how to correct this error message... Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/no***************ter.php on line 46 Here is the code: 40 } else { 41 echo "<p>This page requires authentication. 42 Please login.</p>"; 43 exit; 44 } 45 } 46 if (isset($_GET['p']) && $_GET['p'] == "login") { 47 if ($_POST['name'] != $reg_user) { 48 echo "<p>Sorry, that username does not match. Use 49 your browser back button to go back and try again.</p>"; 50 exit; And such... I know that my problem lies in opening the echo with " and I need to use some \ somewhere but I can't figure out exactly where. Thank you for any help

  • Answer:

    check ur bracket, make sure, each open bracket has a close bracket.

know_it_... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.