From 9c7ed76e4a0b47c325fb0d04d1aee8781f2bd487 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 16 Jul 2025 23:29:27 +0200 Subject: [PATCH] Fixed issue where enteries where shown by creation order instead of date of travel/visit --- api/calls/get_items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/calls/get_items.php b/api/calls/get_items.php index 96acebe..970b828 100644 --- a/api/calls/get_items.php +++ b/api/calls/get_items.php @@ -8,7 +8,7 @@ if (!isset($_SESSION['name'])) { require_once 'config/db.php'; -$query = "SELECT * FROM items"; +$query = "SELECT * FROM items ORDER BY date ASC"; $stmt = $pdo->prepare($query); $stmt->execute();