Missing closing )
of if
.
...mysql_real_escape_string($_POST['activation']))
^
here
Your code should be:
if(isset($_POST['submit'])){
if($users->confirmEmail(mysql_real_escape_string($_POST['email']),mysql_real_escape_string($_POST['activation']))){
header( 'Location: login.php?msg=3' ) ;
} else {
header( 'Location: activate.php?msg=1' ) ;
}
}
I’d recommend to use some IDE that has syntax highlight. Also errors are very descriptive nowadays. unexpected {
means that there should be something before it.
solved syntax error, unexpected ‘{‘ in php [closed]