$trial = $row['Trial'];
$level = $row['membership_level'];
print $trial;
$number = count($domains);
if (strlen($domain) == 0) {$number = 0;}
if ($level == 4 and $number >= 10) {exit('You have reached your 10 domain limit and cannot add anymore');}
if ($level == 3 and $number >= 1) {exit('You have reached your 1 domain limit and cannot add anymore');}
if ($level == 2 and $trail >= 1) {exit('You have already activated the trial, please purchase a license');}
if ($level == 2) {
根据打印,Trail = 1,并且level = 2,根据它在下一个if语句中失败。但出于某种原因,它永远不会失败
if ($level == 2 and $trail >= 1)
我尝试过intval,strlen,并且不管它。即使我知道trail = 1和level = 2,它也不会失败。
那么我错过了什么?
答案 0 :(得分:4)
你有错误的审判/追踪:
$trial = $row['Trial'];
...
if ($level == 2 and $trail >= 1)