Mam taki kod, ale coś się w nim pogubiłem:
Kod
$sql = "SELECT comment, time, author, email FROM komentarze WHERE news='$_GET[nr]'";
$wynik = @mysql_query($sql);
echo "<center><table width='300'>\n";
while(list($comment, $time, $author, $email) = @mysql_fetch_array($wynik)) {
$time = date("d.m.Y G:i", $time);
$comment = htmlspecialchars($comment);
$comment = nl2br($comment);
if($email != "") { $author = "<a href='mailto:$email'>$author</a>"; }
echo "<tr>\n"
."<td align='left' width='50%' bgColor='white'>$author</td>\n"
."<td align='right' width='50%' bgColor='white'>$time</td></tr>\n"
."<tr><td width='100%' bgColor='#FFFFFF' colspan='2'>$comment</td>\n"
."</tr><br><br>\n";
}
echo "</table>\n"
."<form action='dodaj_kom.php' method='post' name='dodaj_kom'>\n"
."<div class='kom' align='center'>\n"
." Nick: <input type='text' name='nick' size='30'><br>\n"
."Email: <input type='text' name='email' size='30'><br>\n"
."Treść:<Br><textarea name='comment' cols='30' rows='6'></textarea><br>\n"
."<input type='submit' value='Dodaj'>\n"
."<input type='hidden' name='nr' value='$_GET[nr]'>\n"
."</div>\n"
."</form>\n";
$wynik = @mysql_query($sql);
echo "<center><table width='300'>\n";
while(list($comment, $time, $author, $email) = @mysql_fetch_array($wynik)) {
$time = date("d.m.Y G:i", $time);
$comment = htmlspecialchars($comment);
$comment = nl2br($comment);
if($email != "") { $author = "<a href='mailto:$email'>$author</a>"; }
echo "<tr>\n"
."<td align='left' width='50%' bgColor='white'>$author</td>\n"
."<td align='right' width='50%' bgColor='white'>$time</td></tr>\n"
."<tr><td width='100%' bgColor='#FFFFFF' colspan='2'>$comment</td>\n"
."</tr><br><br>\n";
}
echo "</table>\n"
."<form action='dodaj_kom.php' method='post' name='dodaj_kom'>\n"
."<div class='kom' align='center'>\n"
." Nick: <input type='text' name='nick' size='30'><br>\n"
."Email: <input type='text' name='email' size='30'><br>\n"
."Treść:<Br><textarea name='comment' cols='30' rows='6'></textarea><br>\n"
."<input type='submit' value='Dodaj'>\n"
."<input type='hidden' name='nr' value='$_GET[nr]'>\n"
."</div>\n"
."</form>\n";
I czemu mi źle wyświetla

Proszę o pomoc
