list private boards when logged in
parent
d3b90249eb
commit
33fdf3ebf3
|
@ -25,6 +25,7 @@ $navbar="boards";
|
|||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo "<p>Public Boards: </p>";
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
|
@ -39,6 +40,7 @@ $navbar="boards";
|
|||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo "<p>Private Boards: </p>";
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
|
|
Loading…
Reference in New Issue