I have a link which links to a page which echoes out information depending on the id of the link but it is not echoing out the information. Thanks in advance for the help.
if($connect) {
mysql_selectdb('phplogin');
$id = $_GET['id'];
$query = mysql_query("SELECT * FROM forum WHERE id = '$id'");
$data = mysql_fetch_array($query);
echo "<div class='post'>" . "<div class='leftside'>" . "<h3 class='by'>" . $data['user'] . "</h3>" . "<h5 class='date'>" . $data['time'] . "</h5>" . "</div>" . "<div class='after'>" . "</div>" . "<div class='rightside'>" . "<h2 class='title'>" . htmlspecialchars($data['title']) . "</h2>" . "<p class='description'>" . htmlspecialchars($data['description']) . "</p>" . "</div>" . "<div class='clear'>" . "</div>" . "</div>";
} else {
die ('failed to connect to database');
}