PHP syntax error

Hi, the error message I’m getting is:
Parse error: syntax error, unexpected T_ELSE in /home/xxxxxxx/public_html/activate.php on line 30

My code.

[php]if(!$result1) {
echo “Account could not be activated, please contact administrator.”;
} else {
header(‘Location:prompt.php?x=0’);
} else { <------------------------- Error on this line
echo “Error, please contact administrator.”;
}[/php]

Any help is appreciated

You can’t have 2 else statements in the same if statement.

It could simply be a bracket mismatch

Sponsor our Newsletter | Privacy Policy | Terms of Service