を固定し得るよう
<?php
while($posts_row = mysql_fetch_assoc($posts_result))
{
echo '
<tr class="topic-post">
<td class="user-post">' . $posts_row['user_name'] . '<br/>' . date('d-m-Y H:i', strtotime($posts_row['post_date'])) . '</td>
<td class="post-content">' . htmlentities(stripslashes($posts_row['post_content'])) . '</td>
</tr>
';
}
?>
<div class="welcome-text"><strong>This is my second output</strong> </div>
![enter image description here](https://i.stack.imgur.com/WDSrd.png)
はすぐにmysqliのか、準備されたステートメントを使用します。
<table>
<?php
while($posts_row = mysql_fetch_assoc($posts_result))
{
echo '
<tr class="topic-post">
<td class="user-post">' . $posts_row['user_name'] . '<br/>' . date('d-m-Y H:i', strtotime($posts_row['post_date'])) . '</td>
<td class="post-content">' . htmlentities(stripslashes($posts_row['post_content'])) . '</td>
</tr>
';
}
?>
</table>
<div class="welcome-text"><strong>This is my second output</strong> </div>
あなたは完全なHTMLを表示することができ、私はあなたが私が適切な位置にテーブルを閉じていなかった真 '歓迎-text'前 – AgeDeO
ザッツをテーブルを閉じていないと思います。ありがとう – Mysterio4
ヒント:HTML出力を検証すると、そのようなエラーを見つけるのに役立ちます。 https://validator.w3.org/ – CBroe