„threadr/board/board.php“ ändern

master
Jakob 2020-03-08 16:51:03 +01:00
parent b9c707cd15
commit ecfe6b32f3
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ if (!$error) {
if (!$error) { if (!$error) {
$statement = $pdo->prepare("SELECT * FROM users WHERE id=:uid"); $statement = $pdo->prepare("SELECT * FROM users WHERE id=:uid");
$statement->execute(array("uid"=>$ROW[user_id])); $statement->execute(array("uid"=>$ROW[user_id]));
$user = $statement->fetch(); $post_user = $statement->fetch();
} }
if (!$result) { if (!$result) {
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2]; $error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
@ -22,7 +22,7 @@ if (!$error) {
echo "<article>"; echo "<article>";
echo "<header>"; echo "<header>";
echo "<div>"; echo "<div>";
echo "<p class='beige'>$user[name] <time datetime='$ROW[post_time]'>$ROW[post_time]</time></p>"; echo "<p class='beige'>$post_user[name] <time datetime='$ROW[post_time]'>$ROW[post_time]</time></p>";
echo "</div>"; echo "</div>";
echo "</header>"; echo "</header>";
echo "<div class='postcontent'>"; echo "<div class='postcontent'>";