nogle der kan se hvorfor dn ikke ville skrive id'en
Jeg starter lige på den vil ikke skrive i i links hvad går galt<?php
include('inc.config.php');
$query = mysql_query("SELECT id,title,image,synopsis FROM news ORDER BY id DESC LIMIT 12") or die(mysql_error());
while ($row = mysql_fetch_assoc($query)) {
if ($i++ != 0) echo '<div class="hr"></div>';
echo "<h2><a href='news.display.php?id='".$row['id'].">".$row['title']."</h2>";
echo empty($row['image']) ? '' : '<img src="files/'.$row['image'].'" class="image"></a>';
echo $row['synopsis'] . "<br><br><a href='news.display.php?id='".$row['id'].">læs mere</a>";
}
?>
