enter image description here我在获取下拉列表时收到未定义对象的错误。[
<!DOCTYPE html>
<html>
<head>
<title>PHP DROP-DOWN</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, inintial-scale=1.0">
</head>
<body>
<!--method1--->
<select>
<?php while ($row1 = mysqli_fetch_array($result1)):;?>
<option value="<?php echo $row1[0];?>">
<?php echo $row1[1];?>
</option>
<?php endwhile;?>
</select>
</body>
</html>
] 2