动态下拉列表使用mysql php html导致未定义的偏移量错误

时间:2017-03-27 02:49:31

标签: php html mysql

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

0 个答案:

没有答案