ordering posts by time added

This commit is contained in:
Václav Šmejkal 2024-05-24 19:02:19 +02:00
parent d81d4e4ca4
commit 6d0fd13ea5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -15,7 +15,7 @@ if ($out -> num_rows != 1)
return; return;
} }
$out = $database -> query("SELECT title, description, photo_id FROM post"); $out = $database -> query("SELECT title, description, photo_id FROM post ORDER BY id DESC");
$output = array(); $output = array();