Here's what I think is the relevant code:
Code: Select all
$postArray = array();
while ($row = mysql_fetch_assoc($query))
{
$myPost = new BlogPost($row["id"], $row['title'], $row['post'], $row["author_id"], $row['dateposted']);
array_push($postArray, $myPost);
}
return $postArray;
Code: Select all
$blogPosts = GetBlogPosts();
So, any help on how to check to see what's in my $blogPosts would be awesome, particularly if you can tell me how to display the full contents so I can do this with problems in the future too. Thanks so much for taking the time to help!