2012-06-13 4 views
-3
$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) { 

흔적 = 1 잡히지하지 레벨 = 2 if 문 다음에 실패한 것이 방법. 그러나 어떤 이유로 내가 나 strlen, INTVAL 시도하고 혼자 떠나 한알려진 조건에 따라 인쇄 if 문

if ($level == 2 and $trail >= 1) 

에 실패하지 않을 것입니다. 트레일 = 1 및 레벨 = 2를 알고 있더라도이 시점에서 실패하지 않습니다.

그래서 나는 무엇이 누락 되었습니까?

+1

자신에게 괜찮은 IDE를 얻을 제발, 당신의 문제를 해결 한 것이다. –

답변

4

당신은 맞춤법이 틀린 한 시험/흔적 :

$trial = $row['Trial']; 
... 
if ($level == 2 and $trail >= 1) 
+0

그리고 괜찮은 IDE가 그에게 말했을 것입니다! –