list private boards when logged in

master
Jakob 2020-03-06 09:58:17 +01:00
parent d3b90249eb
commit 33fdf3ebf3
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ $navbar="boards";
$error = false; $error = false;
$error_message = ""; $error_message = "";
if (!$error) { if (!$error) {
echo "<p>Public Boards: </p>";
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc"); $statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc");
$statement->execute(); $statement->execute();
foreach($statement->fetchAll() as $ROW) { foreach($statement->fetchAll() as $ROW) {
@ -39,6 +40,7 @@ $navbar="boards";
$error = false; $error = false;
$error_message = ""; $error_message = "";
if (!$error) { if (!$error) {
echo "<p>Private Boards: </p>";
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc"); $statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc");
$statement->execute(); $statement->execute();
foreach($statement->fetchAll() as $ROW) { foreach($statement->fetchAll() as $ROW) {