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