国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

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

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

問題描述

<?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>

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

</tr>

<tr>

<td>專業名稱:</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>

問題解答

回答1:

xh字段是主鍵嗎?

相關文章:
主站蜘蛛池模板: 桓台县| 盈江县| 离岛区| 彭阳县| 鹿邑县| 九寨沟县| 北票市| 托克逊县| 呼图壁县| 集贤县| 永修县| 读书| 柳河县| 顺平县| 汕尾市| 康定县| 札达县| 夏津县| 兴宁市| 扶绥县| 闽清县| 建瓯市| 高邑县| 英德市| 贺兰县| 阿拉善盟| 哈巴河县| 广安市| 浦北县| 若羌县| 永丰县| 唐河县| 改则县| 弥勒县| 绥宁县| 仁布县| 荣昌县| 新巴尔虎左旗| 天长市| 蛟河市| 会东县|