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