<?php include("includes/db.php"); include("includes/auth.php");

$res=$conn->query("SELECT * FROM users");
?>
<h2>Users</h2>
<table border=1>
<tr><th>ID</th><th>Name</th><th>Phone</th><th>Delete</th></tr>
<?php while($u=$res->fetch_assoc()): ?>
<tr>
<td><?= $u['id'] ?></td>
<td><?= $u['name'] ?></td>
<td><?= $u['phone'] ?></td>
<td><a href="users.php?del=<?= $u['id'] ?>">Delete</a></td>
</tr>
<?php endwhile; ?>
</table>
