求教Parse error: syntax error,

求教Parse error: syntax error,求大神教怎么改这个错误Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /data/home/bxu2359380543cdocs/temp/compiled/admin/login.htm.php on line 4求大神教

login.htm.php 里第4行 有错。
通常,endif 后面是分号, 写成 endif;
接下来 (T_ENDIF) 是注解还是什么?要分开。
<?php
//start if statement...
if ($username == "danx10") :
//execute following code...
echo "Hello ". $username;
//end/close the if statement...
endif;
?>
温馨提示:答案为网友推荐,仅供参考
相似回答