Trouble With If statement PHP
I have been scripting PHP for for about 9 months now and im starting to run into a problem with my if conditions. This has never happened before.
if ($reason != "9ee1e1f4fbf1"){
XXXXXXXXX
}
I even tried putting the 9ee1ef4fbf1 in parenthesis and that didnt work. i keep getting this:
Parse error: syntax error, unexpected T_IF in /home/content/49/549/html/index.php on line 21
The problem is in the line above the if. Maybe forgot a semicolon?
Please post the lines before the if
statement. Usually, when you get an unexpected ____
error in PHP, it means you left out a semi-colon or something like that.
T_IF
标记是意想不到的,可能是因为PHP处于未由结束分隔符完成的分析状态(可能是分号末尾( ;
))。
上一篇: PHP解析和whitespacing错误
下一篇: 麻烦If语句PHP