Skip to content

Instantly share code, notes, and snippets.

@ghkevin20
Created January 24, 2019 00:17
<?php
$sql = "SELECT * FROM info";
$result = mysqli_query($conn,$sql);
while ($row = mysqli_fetch_assoc($result)){
?>
<tr>
<td><?php echo $row['id'];?></td>
<td><?php echo $row['name'];?></td>
<td><?php echo $row['email'];?></td>
<td>
<a href="edit.php?id=<?php echo $row['id'] ?>">Edit</a>
<a href="delete.php?id=<?php echo $row['id'] ?>" onclick="return confirm('Are you sure to continue?');">Delete</a>
</td>
</tr>
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment