/index.php Secret
Created
January 24, 2019 00:17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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