搜尋

首頁  >  問答  >  主體

為什麼總是出現未定義索引怎麼解決呀

e
<?php
	include("connect/connect.php");
	$xh=$_GET['xh'];
	$sql="select xh,xm,xb,zymc from xsjbxxb where xh=".$xh;/lect host,user from user
	$result=mysqli_query($conn,$sql);
	while( $arr=mysqli_fetch_array($result) )
	{
	?>
	<form id="form1" method="post" action="update_ok_1.php">
	<table border="1" width="400" align="center" cellpadding="0" cellspacing="0">
		<tr>
			<td width="100">学号:</td>
			<td><input type="text" name="xh" value="<?php echo $arr[0]; ?>"readonly></input></td>
		</tr>
		<tr>
			<td>姓名:</td>
			<td><?php echo $arr[1]; ?></td>
		</tr>
			<tr>
			<td>性别:</td>
rr
手机用户1606464442手机用户16064644421536 天前1430

全部回覆(1)我來回復

  • 天蓬老师

    天蓬老师2020-11-29 20:02:29

    xh欄位是主鍵嗎?

    回覆
    0
  • 取消回覆