Fixed issue where enteries where shown by creation order instead of date of travel/visit
This commit is contained in:
@@ -8,7 +8,7 @@ if (!isset($_SESSION['name'])) {
|
|||||||
|
|
||||||
require_once 'config/db.php';
|
require_once 'config/db.php';
|
||||||
|
|
||||||
$query = "SELECT * FROM items";
|
$query = "SELECT * FROM items ORDER BY date ASC";
|
||||||
$stmt = $pdo->prepare($query);
|
$stmt = $pdo->prepare($query);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user