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

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

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

瀏覽:156日期: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">學(xué)號:</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>專業(yè)名稱:</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字段是主鍵嗎?

相關(guān)文章:
主站蜘蛛池模板: 怀远县| 澄迈县| 滨海县| 年辖:市辖区| 隆安县| 江门市| 政和县| 晋州市| 中宁县| 浪卡子县| 利津县| 措美县| 商丘市| 伽师县| 新化县| 保德县| 淅川县| 平乡县| 钟祥市| 龙里县| 甘南县| 邵武市| 新宁县| 来宾市| 班戈县| 杭锦旗| 松原市| 临猗县| 留坝县| 盐亭县| 新兴县| 乡城县| 松潘县| 汉寿县| 新宁县| 津南区| 瑞丽市| 武冈市| 望江县| 西城区| 保靖县|