PHP_MySQL教程-第二天
来源:PHPerz.com 作者:网络转载 发布时间:2007-12-07
;
$result = mysql_query($sql);
$myrow = mysql_fetch_array($result);
$id = $myrow["id"];
$first = $myrow["first"];
$last = $myrow["last"];
$address = $myrow["address"];
$position = $myrow["position"];
// 显示id,供用户编辑修改
?>
<input type=hidden name="id" value="<?php echo $id ?>">
<?php
}
?>
名:<input type="Text" name="first" value="<?php echo $first ?>"><br>姓:<input type="Text" name="last" value="<?php echo $last ?>"><br>住址:<input type="Text" name="address" value="<?php echo $address ?>"