日期:2014-05-17 浏览次数:20501 次
<script language="javascript" >
function Delete11(var id)
{
.................
}
</script>
<form action="delete.php" method = "post">
<table border = "1" cellpadding = "3" align = "center">
<tr>
<th>编号</th>
<th>商品名称</th>
<th>商品货号</th>
<th>商品价格</th>
<th>促销价</th>
<th>操作</th>
</tr>
<?php
include ('..\Conn\ConnectionDB.php');
$sql = "select *from products";
$result = mysql_query($sql);
$row = mysql_fetch_row($result);
while ($row){
?>
<tr>
<td><?php echo $row[0]?></td>
<td><?php echo $row[3]?></td>
<td><?php echo $row[2]?></td>
<td><?php echo $row[11]?></td>
<td><?php echo $row[12]?></td>
<td><button onclick = Delete11(<?php echo $row[0]?>)>删除</button></td>
</tr>
<?php
$row = mysql_fetch_row($result);}
?>
</table>
</form>