PHP Error - Need Help - Parse error: syntax error, unexpected T_STRING,

  • Thread starter Thread starter know_it_all23
  • Start date Start date
K

know_it_all23

Guest
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
 
Back
Top