我试图在每行上添加一个删除按钮,这样我可以在按下按钮时删除一条记录。我是PHP和MySQL以及Stack Overflow的新手。在MySQL表格的每一行上添加一个PHP删除按钮
下面是我从我的MySQL数据库中提取信息的工作表。
<table class="table" >
<tr>
<th> Staff ID </th>
<th> Staff Name </th>
<th> Class </th>
<th> Action </th>
</tr>
<?php
while($book = mysqli_fetch_assoc($records)){
echo "<tr>";
echo "<td>".$book['Staff_ID']."</td>";
echo "<td>".$book['Staff_Name']."</td>";
echo "<td>".$book['Class']."</td>";
echo "</tr>";
}// end while loop
的http://计算器。 com/questions/43281598/how-to-delete-a-specific-row-in-a-table-using-javascript#comment73631786_43281598 – mkaatman