Hi, I have the below code and I am trying to get each "users post" into a seprate div, currently it shows all the posts in one div. Am sure its something simple I have just messed up on, this isn't finished yet so some parts in the code are still abit dodgy.
<?php
if (loggedin())
{
$ID = getID();
$query = "SELECT * FROM `posts`";
$result=mysql_query($query);
$count=mysql_num_rows($result);
while ($row = mysql_fetch_array($result))
{
echo '<div id="posts">';
echo "<br />".$row['2']."<br />";
echo "</div>";
}
}
else
{
echo "Not Logged In";
}
?>
Thanks :)