ash992 Posted June 27, 2012 Share Posted June 27, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/ Share on other sites More sharing options...
Pikachu2000 Posted June 27, 2012 Share Posted June 27, 2012 What's missing from the end of this line? $end = 1 Quote Link to comment https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/#findComment-1357367 Share on other sites More sharing options...
ash992 Posted June 27, 2012 Author Share Posted June 27, 2012 Where should I be putting $end = 1? or are you just saying that it needs a variable somewhere in the else tag? Quote Link to comment https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/#findComment-1357368 Share on other sites More sharing options...
Pikachu2000 Posted June 27, 2012 Share Posted June 27, 2012 I'm asking what should be at the end of that line, but is missing. Quote Link to comment https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/#findComment-1357371 Share on other sites More sharing options...
Barand Posted June 27, 2012 Share Posted June 27, 2012 ... I've only just finished learning PHP ... I'm impressed - I've been coding with it for over ten years and I'm still learning. Quote Link to comment https://forums.phpfreaks.com/topic/264864-spot-the-syntax-error/#findComment-1357422 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.