我真的需要您的帮助。我想知道如何在单个if语句中使用两个大于(>)且小于(<)的参数。我试图在下面的代码中执行此操作,但我一直在'else'语句中收到错误消息。如何在PHP中使用If语句组合两个参数
<?php
$value1="7";
if($value1<78);
if($value1>7);
{print"Yes, the answer is above 7 but below 78";}
else
{print"that's not correct";}
?>
任何帮助将不胜感激,谢谢。
可能重复[如何结合两个IF在PHP语句(http://stackoverflow.com/questions/5955678/how-to-combine-two-if-声明在PHP) – FuzzyTree