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

$res=$conn->query("SELECT * FROM reported_messages");
?>
<h2>Reported Messages</h2>
<?php while($r=$res->fetch_assoc()): ?>
<p><?= $r['message_id'] ?></p>
<a href="delete_message.php?id=<?= $r['message_id'] ?>">Delete</a>
<hr>
<?php endwhile; ?>
