输入代码段
<h2 align="center">修改图书库存量</h2>
<form action="modify1.php" name="mod" method="mod1">
<table width="560" border="1" align='center'>
<tbody>
<tr>
<td width="21" align="center"><h4>图书id</h4></td>
<td width="29" align="center"><h4>图书库存量</h4></td>
</tr>
<tr>
<td align="center"><input type="text" name="kid" id="kid"></td>
<td align="center"><input type="text" name="numr" id="numr"></td>
</tr>
</tbody>
</table>
<p align="center"><input type="submit" value="提交"></p>
</form>
接受输入的值的代码段
<?php
require("link.php");
$id=$_POST["kid"];
$nu=$_POST["numr"];
$up="UPDATE `inventory table` SET number='$nu'
WHERE bookID='$id'";
$co=mysqli_query($link,$up);
error_reporting(E_ALL);
?>
插入的表的字段类型