【php开源代码栏目提醒】:网学会员,鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“update.php”一文,供大家参考学习!
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body style="margin-top:0; font-size:12px; font-family:'新宋体'">
<center>
<table width="90%" cellpadding="0" cellspacing="0">
<tr>
<td background="../image/headerbg.jpg">
<img src="../image/Header.jpg">
</td>
</tr>
</table>
</center>
<table class="table1" cellpadding="0" cellspacing="0" width=90% align=center>
<caption>图书信息修改</caption>
<th>名称</th><th>作者</th><th>修改</th>
<?php
$link=mysql_connect("localhost","root","0");
//mysql_query("set names 'gbk'");
mysql_select_db("books");
$exec="select * from mybook";
$result=mysql_query($exec);
while($rs=mysql_fetch_object($result))
{
$id=$rs->id;
$name=$rs->name;
$author=$rs->author;
$content="<tr><td>".$name."</td><td>".$author."</td><td><a href='UpdateBook.php?id=".$id."'>修改</a></td></tr>";
echo $content;
}
?>
</table>
<p align="center">|<a href="chakan.php">操作主页</a>|<a href="addBook.php">数据添加</a>|<a href="deleteBook.php">数据删除</a>|</p>
<br>
<table width="100%" style="font-size:12px;border-top-style:solid;border-bottom-style:none;border-right-style:none;border-left-style:none;" cellspacing="0" cellpadding="4" align="center">
<tr>
<td> <div align="center">
IT在中国电脑学习网!@2007</br>
公司地址:郑州市二七路200号金博大D座2708室</br>
电话:66202195
电子邮件:<A HREF='mailto:
update.php为[网学网-网友上传,谢谢支持]。'></A>
update.php为[网学网-网友上传,谢谢支持]。
</div></td>
</tr>
</table>
</body>
</html>
上一篇:
unzip.php
下一篇:
凉凉的清晨