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