I have more than one article stored in my database, that I want to display. However, only the most recent article is being displayed on the page, rather than all of them. Any help to show all the articles would be appreciated.
<div class="column-center">
<?php
include 'includes/connect.php';
$select_news = "select * FROM news";
$run_news = mysql_query($select_news);
while ($row_news=mysql_fetch_array($run_news)){
$article_id = $row_news['article_id'];
$article_title = $row_news['article_title'];
$article_date = $row_news['article_date'];
$article_author = $row_news['article_author'];
$article_keywords = $row_news['article_keywords'];
$article_content = $row_news['article_content'];
$article_image = $row_news['article_image'];
}
echo "
<a href='details.php?article=$article_id'>$article_title</a>
<div>$article_content <a href='article.php?article=$article_id'>Read More</a></div><br />
<img src='images/$article_image' width='100' height='100'/>
";
?>
</div>