新人 帮我写下 剩下不会写了 php删除
<body><table summary="This table shows the years 2004 through 2007"border="2">
<caption>输出</caption>
<tr>
<th scope="col">Id</th>
<th scope="col">名字</th>
<th scope="col">城市</th>
<th scope="col">性别</th>
<th scope="col">生日</th>
<th scope="col">操作</th>
</tr>
<form method="post" action="#" ></form>
<?php
$hostname="127.0.0.1";
$username="root";
$password="123456";
$link=mysql_connect($hostname,$username,$password);
mysql_select_db("test2");
$sql2="select * from yc1";
$result1=mysql_query($sql2);
$id=0;
$sql="delete from yc1 where=$id";
while($row=mysql_fetch_array($result1)){
?>
<tr>
<th scope="col"><?php echo $row['id']?> </th>
<th scope="col"><?php echo $row['name']?> </th>
<th scope="col"><?php echo $row['city'] ?></th>
<th scope="col"><?php echo $row['sex'] ?></th>
<th scope="col"><?php echo $row['birth'] ?></th>
<th><input type="submit" value="删除" name="$id"/></th>
???
???
??
接下来 怎么写啊····急啊 各位大侠 帮下我