forked from root/threadr.lostcave.ddnss.de
sort boards by id
parent
ff92f770a2
commit
477fc9517b
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue