rendered paste body<?php// Display list of articles$query = "SELECT article_id, title FROM article ORDER BY title";$result = mysql_query($query);while($row = mysql_fetch_array($result)) { echo '<a href="thispagename.php?article_id='.$row['article_id'].'">'.$row['title'].'</a><br />';}// Display Selected Article (If there is one)if($_GET['article_id']) { $query = "SELECT * FROM article WHERE article_id = '".$row['article_id']."'"; $result = mysql_query($query); if($row = mysql_fetch_array($result)) { echo '<h1>' . $row['title'] . '</h1>'; echo '<p>' . $row['article_body'] . '</p>'; }}?>