我怎样才能写一个条件,如果没有找到该行然后做某事?
我的代码
$resultt = mysql_query("SELECT * FROM objednavky WHERE kdo = '$kdo' and kdy = '$the_rday'");
while ($roww = mysql_fetch_array($resultt)) {
echo "<form method='post' action=''>
<label for='obb1'>Menu #1 </label>
<input type='text' name='obb1' value='$roww[3]' size='4'><br>
<label for='obb1'>Menu #2 </label>
<input type='text' name='obb2' value='' size='4'><br>
<label for='obb1'>Menu #3 </label>
<input type='text' name='obb3' value='' size='4'><br>
<input type='submit' value='objednat'></form>";
}
我想继续这样
...} else {
echo " no match ";
}
非常感谢您的帮助。