是否可以在单击按钮时将一个表行移动到另一个表行?我已经有2个用于Edit.php和Delete.php的按钮。但是现在我想添加一个按钮来将该行移动到另一个表。
此信息来自表“优惠”
<tr>
<th class='no-index' scope='row'>".$row['id']."</th>
<td>".$row['name']."</td>
<td>".$row['tel']."</td>
<td>".$row['email']."</td>
<td>".$row['phone']."</td>
<td><a class='pdf' href='download.php?client=".$row['id']."' role='button'>
</a></td>
<td><a class='btn-success btn-primary btn-sm' href='edit.php?
client=".$row['id']."' role='button'>Edit</a></td>
<td><a class='btn-danger btn-primary btn-sm' href='delete.php?
id=".$row['id']."' role='button'>X</a></td>
</tr>
此信息来自表“紧急”
<tr>
<th class='no-index' scope='row'>".$row['id']."</th>
<td>".$row['name']."</td>
<td>".$row['tel']."</td>
<td>".$row['email']."</td>
<td>".$row['phone']."</td>
<td><a class='pdf' href='download.php?client=".$row['id']."' role='button'>
</a></td>
<td><a class='btn-success btn-primary btn-sm' href='edit.php?
client=".$row['id']."' role='button'>Edit</a></td>
<td><a class='btn-danger btn-primary btn-sm' href='delete.php?
id=".$row['id']."' role='button'>X</a></td>
</tr>
我有以下内容:
INSERT INTO urgent SELECT * FROM offers WHERE id = $id;
DELETE FROM offerts WHERE id = $id;
如何使用buttonclick运行此sql并将其添加到“编辑和删除”按钮下方?