„threadr/boards/index.php“ ändern

master
Jakob 2020-02-19 22:41:54 +01:00
parent ed109da4ca
commit 849c775557
1 changed files with 6 additions and 5 deletions

View File

@ -9,7 +9,8 @@
<li><a href="%CONTENT_DIR%/">Home</a></li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a class="active" href="%CONTENT_DIR%/login/">Log In</a></li>
<li><a class="active" href="%CONTENT_DIR%/boards/">Boards</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
</ul>
<div style="padding:0 16px;">
<p></p>
@ -20,7 +21,8 @@
<div class="item-1">
<h1><center>ThreadR Boards</center></h1>
</div>
<div class="item-2 round-border">
</div>
<ul class="topnav">
<?php
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
$error = false;
@ -31,7 +33,7 @@
$statement->execute();
foreach($statement->fetchAll() as $ROW) {
echo "<li><a href='%CONTENT_DIR%/boards?=$ROW[id]'>$ROW[name]</a></li><br />";
echo "<li><a href='%CONTENT_DIR%/boards?=$ROW[id]'>$ROW[name]</a></li>";
}
}
@ -39,7 +41,6 @@
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
}
?>
</div>
</div>
</ul>
</body>
</html>