Update manage_incident.php

This commit is contained in:
jakani24
2024-06-25 21:23:48 +02:00
parent 594d1724ca
commit 5c23f9dfd6

View File

@@ -195,7 +195,7 @@ if(isset($_GET["add_message"])){
</div>"); </div>");
//display messages //display messages
echo("<h4>Messages</h4>"); echo("<h4>Messages</h4>");
$sql="SELECT * FROM chats WHERE belongs_to_incident = ?"; $sql="SELECT * FROM chats WHERE belongs_to_incident = ? ORDER BY id DESC";
$stmt = $conn->prepare($sql); $stmt = $conn->prepare($sql);
$incident_id=htmlspecialchars($_GET["incident_id"]); $incident_id=htmlspecialchars($_GET["incident_id"]);
$stmt->bind_param("i", $incident_id); $stmt->bind_param("i", $incident_id);