好了,所以我试图让这个if/else语句一起工作了此错误:如果声明,不工作
Parse error: syntax error, unexpected T_ELSE
这里是我的if/else语句:
<?if ($stats -> totalReferrals($odb, $_SESSION['username']) == '10' or > '10');
{?>
<h4><strong>Total Referrals: <font color="green">
<?php echo $stats -> totalReferrals($odb, $_SESSION['username']); ?>
</font></strong></h4>
<?}else{?>
<h4><strong>Total Referrals: <font color="red">
<?php echo $stats -> totalReferrals($odb, $_SESSION['username']); ?>
</font></strong></h4>
}?>
如果你能帮助我...
感谢提前:)
使用一些很好的源代码编辑器会指出语法错误 –