Let's start by saying I am not a huge fan of PHP. I don't like it, I love JavaScript, but it would be impossible to do what I need to do with JavaScript. I have this stupid error, parse error, unexpected T_IF, I don't know what it means php.net isn't much help, I am in need of assistance

Here is the line of code its P & M'ing about:
if ($password == $confirm) {
print "The second typing of your password does not match your first";
}
I have made sure that the variables are defined, I have tried writing the if statement every single possible different way, IT DOESN'T WORK

What the hell does it mean and how do i fix it?