I’m pretty new to PHP and I was messing around with a prefab login script to use for my website. I came across a syntax error that I can’t make sense of:
Parse error: syntax error, unexpected T_ELSE in [siteurl]/login.php on line 71
Offending code:
64 setcookie(cvc123, $_POST['pass'], $hour);
65 //
66 //redirect
67 header("Location: members.php");
68 }
69 }
70 }
71 else
72 {
I’ve tried looking around at my semicolons and brackets, but everything checks out. What am I missing?
Thanks,
Ethan