„threadr/board/board.php“ ändern
parent
b9c707cd15
commit
ecfe6b32f3
|
@ -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'>";
|
||||
|
|
Loading…
Reference in New Issue