Jump to content

Spot the syntax error?


ash992

Recommended Posts

Hey guys, I've got a problem and I'm really not sure what's causing it.. I've only just finished learning PHP so it could be something simple but I can't seem to find what's wrong with it.. Thanks in advance :)

 

if ($pass == $pass2) {
$okay = 1
}else{
die "the passwords do not match";
}

 

The error I'm getting is..

Parse error: syntax error, unexpected '}' in /home/*/public_html/PHP/test2/rengine.php on line 12

 

Line 12 is,

}else{

 

So... If anyone could please help, What have i done wrong? :s

 

Thanks guys

Link to comment
https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.