-1
我需要你的帮助,弄清楚如何将多个if语句与不同条件组合起来。下面是我试图去工作的代码。比较数字和字符串
<p><?php
$age="25";
$ID="prog5";
if($age >= "16" && $age <= 32 && $ID == prog5) {
print "Welcome to the Future of Systems";
}
else {
print "Sorry, your ID isn't recognized by sync. Please click here for further assistance.";
}
?></p>
我想声明“欢迎使用系统的未来”,以显示只有$age
是16和32之间,如果$ID
为prog5
,但我用不工作的表达式。
谢谢,这个工作! :) – TDh 2014-10-31 01:39:36