Here is my current code:
$sql = "SELECT * FROM user_posts";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
while ($row = mysql_fetch_array($result))
{
print $row['message'];
}
My goal is to show all of the data in that SQL database through an array. But currently, it only shows the latest one and nothing else. How am I able to do this? Thanks!