Problem med nyhedssystem
Hep hey,jeg har et problem med mit nyhedssystem, jeg fatter ikk helt hvorfor at forfatteren kommer til at stå som den gør på denne side...
http://www.clan-escapers.dk/megatest/laes.php?id=3
:KODE:
<?php include("functions/connect.php"); ?>
<center><table cellpadding="0" cellspacing="0" border="0" width="400"><tr>
<td>
<?
$id = $_GET['id'];
$query = mysql_query("SELECT * FROM news_body WHERE id=$id");
$r = mysql_fetch_array($query);
echo "<font color=\"#000000\" size=\"3\"><b>$r[overskrift]</b><br></font>";
if ($r[email] == "") {
echo "<font color=\"#999999\" size=\"1\">$r[navn] ($r[dato])</font>";
} else {
echo "<font color=\"#999999\" size=\"1\"><a href=\"mailto: $r[email]\">$r[navn]</a> ($r[dato])</font>";
}
$txt = nl2br($r[txt]);
echo "<p>$txt <br>";
echo "<img src='images/shacked/pg_bg.gif' border=\"0\">";
?>
<?
$query = mysql_query("SELECT * FROM news_msg WHERE spm=$id ORDER BY id");
while ($r = mysql_fetch_array($query)) {
if ($r[email] == "") {
} else {
echo "<a href=\"mailto: $r[email]\">$r[navn]</a> ($r[dato])";
}
$txt = nl2br($r[txt]);
echo "<p>$txt <br>";
echo "<img src='images/shacked/pg_bg.gif' border=\"0\">";
}
?>
<b>Comment news</b><br>
<br>
<form method="post" action="functions.php"><input type="hidden" name="id" value="<?= $id; ?>"><input type="hidden" name="perform" value="reply">
Name:
<input type="text" name="navn" value="<? echo $_COOKIE['navn']; ?>" style="width: 120px"> Email: <input type="text" name="email" value="<? echo $_COOKIE['email']; ?>" style="width: 120px"><br>
<textarea rows="7" name="txt" style="width: 335px"></textarea><br>
<input type="submit" name="send" value="Send"> <input type="checkbox" name="cookie">
Save settings ?<br>
<img src="images/shacked/pg_bg.gif" border="0">
<div align="center"><a href="index.php">Back
2 front</a> </div>
</form>
</td></tr></table></center>
</body>
</html>
:KODE SLUT: