所以我在使用空值的验证while语句代码while else statement? PHP
while (!$rs->EOF){
echo "<tr><td>".$rs->Fields("Branch")."</td>";
$rs->movenext();
}
$rs->Close();
?>
我想实现是有一个“其他”的声明,虽然我的不能使用where语句知道。哪一个相当于哪里的声明?
while (!$rs->EOF){
echo "<tr><td>".$rs->Fields("Branch")."</td>";
$rs->movenext();
}
if(!$rs->EOF)
{
echo "<tr><td> Branch is missing</td>";
}
$rs->Close();
?>
我试图用“如果”我没有得到任何错误,虽然它没有打印的内容我想打印
*当你想触发这个'else'条件吗?目前它和你的'while'条件相同,没有多大意义。请用文字描述逻辑。 – deceze 2013-02-19 07:11:09
哪里是where语句? – 2013-02-19 07:11:52
上面的where语句在哪里? – itachi 2013-02-19 07:12:29