I am retrieving posts from my database but I want the <div class="welcome-text"><strong>This is my second output</strong> </div> to display below the retrieved table but its always displaying above. is there any way I can fix this:
<?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>
Would use mysqli or prepared statement soon as I get this fixed

welcome-text