sort boards by id

master
Jakob 2020-03-02 09:02:53 +01:00
parent ff92f770a2
commit 477fc9517b
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ $navbar="boards";
$error = false;
$error_message = "";
if (!$error) {
$statement = $pdo->prepare("SELECT * FROM boards");
$statement = $pdo->prepare("SELECT * FROM boards ORDER BY id asc");
$statement->execute();
foreach($statement->fetchAll() as $ROW) {
echo "<li><a href='%CONTENT_DIR%/boards/thread.php?id=$ROW[id]'>$ROW[name]</a></li>";