我试图允许用户通过单击相应行的删除按钮来删除这些行中的任何一行。不幸的是,当他们单击删除时,它会删除所有行。我究竟做错了什么?表格如下所示:
$metakey | $元值 | 删除按钮
$metakey | $元值 | 删除按钮
$metakey | $元值 | 删除按钮
<?php while($row=mysql_fetch_array($followerresult)){
$meta_key=$row["meta_key"];
$meta_value=$row["meta_value"];
echo "<table><tr>
<td>$meta_key</td>
<td>$meta_value</td>
<td><form ID='deleteform' method='POST'>
<div id='mySubmit'>
<input type='submit' name='Delete' value='Delete'>
</form></td>
</tr>";
if (isset($_POST['Delete'])) {
//SQL Delete
echo $wp_login . " has been removed from access permissions";
}
回声“”;
?>