getLatestPostings($numpostings);
$output = "
";
foreach($latestNews as $post) {
$output = "
" . $post['title'] . "
" . $post['content'] . "
";
}
$output .= "
";
?>
" . htmlentities($newspost->title) . "";
echo "Posted on: " . htmlentities($newspost->postdate) .
" Posted by: " . htmlentities($newspost->username) . "
";
echo "Category: " . htmlentities($newspost->category) . "
";
if( $newspost->edited )
{
echo "Edited on: " . htmlentities($newspost->editdate) .
"Edited by: " . htmlentities($newspost->editorname) . "
";
}
echo "" . htmlentities($newspost->content) . "
";
//here if i want to change the page to display them, I have to do something when they click the link
echo "";
//deal with comments if clicked
if( )
{
while( $tempcomment = array_pop($newspost->comments))
{
//top of comment box
require_once "includes/topcommentbox.php";
//comment content
echo "