我在PHP中有一个带有id名称和3个按钮的表 (第1次显示详细信息/ 2次编辑/ 3次删除)以在我的数据库中显示表格 而我想要做的是当客户按下它们以弹出一个模态 我该怎么办?
$sql = "SELECT * FROM Jobs";
$stmt = sqlsrv_query($connection,$sql);
$counter=1;
while($row4=sqlsrv_fetch_array($stmt))
{
echo"<tr >";
echo"<td class='text-center'>".$counter."</td>";
echo"<td class='text-center'>".$row4[0]."</td>";
echo"<td class='text-center'>".$row4[1]."</td>";
echo"<td class='text-center'>
<button type='button' class='btn btn-success' data-toggle='modal' data-target='#myModal'>show</button>
<button type='button' class='btn btn-warning' data-toggle='modal' data-target='#myModal'>edit</button>
<button type='button' class='btn btn-danger' data-toggle='modal' data-target='#myModal'>delete</button>
</td>";
echo"</tr>";
$counter++;
}
?>