Jump to content

Simple if statement


todayme

Recommended Posts

Are you getting an error? If so, please post. I think, if you are, it's because you have a right parentheses instead of a curly bracket to close your if statement.

 

Yours:

 

if($authenticate!=$password){

 

 

exit();

 

)

 

Correct:

 

if($authenticate!=$password){

 

 

exit();

 

}

Link to comment
https://forums.phpfreaks.com/topic/41402-simple-if-statement/#findComment-200552
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.