%NAVBAR%
ThreadR Boards
prepare("SELECT * FROM boards WHERE public = '1' ORDER BY id asc");
$statement->execute();
foreach($statement->fetchAll() as $ROW) {
echo "- $ROW[name]
";
}
}
if (!$result) {
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
}
if ($login) {
if (!$error) {
$statement = $pdo->prepare("SELECT * FROM boards WHERE public='0' ORDER BY id asc");
$statement->execute();
foreach($statement->fetchAll() as $ROW) {
echo "- $ROW[name]
";
}
}
if (!$result) {
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
}
}
?>