Here is a php file that i HAVE...so at the moment it displays the latest news on the site but I want to add 5 more...how should my query be?
<?php
$stmt = $db->query('SELECT postID, postTitle, postURL, postDesc, postDate FROM posts where postid=(SELECT max(postID) from posts)');
while($row = $stmt->fetch()){
$output = ' <div class="panel-group panel-group-lists" id="accordion">';
$output .= '<div class="panel"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#';
$output .= $row['postID'];
$output .= '">';
$output .= $row['postTitle'] ;
$output .=
'</a> </h4> </div> <div id="';
$output .= $row['postID'];
$output .= '" class="panel-collapse collapse in"> <div class="panel-body"> <p>Posted on ';
$output .= date('jS M Y H:i:s', strtotime($row['postDate']));
$output .= $row['postDesc'];
$output .= '<p><a href="'.$row['postURL'].'"><button type="button" class="btn btn-primary col-md-offset-8">Read More</button></a></p>';
$output .= '</div> </div></div>';
echo $output;
}
$output .= '</div>';
?>