久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

為什么總是出現(xiàn)未定義索引怎么解決呀

瀏覽:146日期:2022-06-03 18:43:45

問(wèn)題描述

<?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">學(xué)號(hào):</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>

<td><?php echo $arr[2]; ?></td>

</tr>

<tr>

<td>專(zhuān)業(yè)名稱(chēng):</td>

<td>

<?php echo $arr[3]; ?>

</td>

</tr>

<tr>

<td colspan="2" align="center"><input type="submit" name="sub1" value="添加">&nbsp;&nbsp;

<input type="reset" name="sub2" value="清空">

</td>

</tr>

<?php

}

?>

</form>

</table>

</body>

問(wèn)題解答

回答1:

xh字段是主鍵嗎?

相關(guān)文章:
主站蜘蛛池模板: 永清县| 新龙县| 仪征市| 聂荣县| 上思县| 深水埗区| 轮台县| 蒙阴县| 盘锦市| 安岳县| 昌乐县| 武山县| 噶尔县| 澄迈县| 莫力| 广西| 岳池县| 德保县| 呼和浩特市| 咸丰县| 桓仁| 孝昌县| 涞源县| 仁怀市| 芜湖县| 安国市| 高台县| 南康市| 焦作市| 高尔夫| 襄垣县| 东阳市| 墨脱县| 灵山县| 罗源县| 洛南县| 罗江县| 丰城市| 大关县| 左权县| 慈利县|