diff --git a/threadr/boards/index.php b/threadr/boards/index.php index 4aa85a6..1154e54 100644 --- a/threadr/boards/index.php +++ b/threadr/boards/index.php @@ -25,9 +25,8 @@ $navbar="boards"; $pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!'); $error = false; $error_message = ""; - echo "
Public boards:
" if (!$error) { - $statement = $pdo->prepare("SELECT * FROM boards ORDER BY id asc"); + $statement = $pdo->prepare("SELECT * FROM boards WHERE public = '1' ORDER BY id asc"); $statement->execute(); foreach($statement->fetchAll() as $ROW) { echo "Private boards:
" if (!$error) { $statement = $pdo->prepare("SELECT * FROM boards WHERE public='0' ORDER BY id asc"); $statement->execute();