I have a website on which I can add new guests to a db. This list is then displayed on the site. I do have a delete button which deletes the relevant record. I am able to reference to a different page to update the details, however, I would like to create a pop-up instead. In the case with a pop-up, there is no href. I cannot seem to get this to run and still reference the relevant 'id'. Please help
while($row = mysqli_fetch_array($result)){
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "<td>" . $row['Surname'] . "</td>";
echo "<td>" . $row['Contact_Number'] . "</td>";
echo "<td>" . $row['Email'] . "</td>";
echo "<td>" . $row['Invite_Code'] . "</td>";
echo "<td>" . "<a onclick='openForm1()' href='?aciton=edit&id" . $row['id'] . "'>Edit</a>". "</td>";
echo"<td>" . "<a href='deleteData.php?action=delete&id=" . $row['id'] . "'>Delete</a>" . "</td>";