Jump to content

[SOLVED] very simple if statement syntax error..


Thundarfoot

Recommended Posts

I am a noob: here is my sign  ???

 

This is the code

<? 
$A = "A";

if ($A == "A") { 
    echo "A is set"
} 
else { 
     echo "A is NOT set"
} 

?> 

 

and this is the error msg

Parse error: syntax error, unexpected '}', expecting ',' or ';' in D:\xampp\htdocs\LootWhore\SkillCards\a.php on line 6

 

please explain what I am missing....

and thank you.

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.