Seite wird nicht ganz ausgegeben

Voggi

Gesperrt
Ich habe das folgende Script geschrieben:
PHP:
<html>
<title>Powerboard</title>
<body>
Powerboard
<br>
<div align="right"><a href="./newthread.php" target="_self">Neuer Thread</a></div>
<br>
<?php
echo '<table width="100%" border="1">';
include('./includes/connect.inc.php');
$thread_list_sql = "SELECT * FROM vforum_threads";
$tl_query = mysql_query($thread_list_sql) or die (mysql_error());
while($to = mysql_fetch_assoc($tl_query) or die(mysql_error()))
{
echo "<tr>";
echo "<td width=\"50%\"><a href=./thread.php?id=".$to['thread_id'].">".$to['thread_title']."</a></td>";
echo "<td width=\"50%\">".$to['thread_autor']."</td>";
echo "</tr>";
}
echo '</table>';
?>
<br>
<div align="right"><a href="./newthread.php" target="_self">Neuer Thread</a></div>
<br>
</body>
</html>

Jetzt zu meinem Problem. Er zeigt mir nur das obere Neuer Thread an. Das untere nicht. Woran könnte das liegen? Ich bin mir ziemlich sicher, dass ich einfach nur irgendwas vergessen hab aber ich find's einfach nicht.
 
Zuletzt bearbeitet:
Versuchs nochmal:

PHP:
<html> 
<title>Powerboard</title> 
<body> 
Powerboard 
<br> 
<div align="right"><a href="./newthread.php" target="_self">Neuer Thread</a></div> 
<br> 
<?php 
echo "<table width=\"100%\" border=\"1\">"; 
include("./includes/connect.inc.php"); 
$thread_list_sql = "SELECT * FROM vforum_threads"; 
$tl_query = mysql_query($thread_list_sql) or die (mysql_error()); 
while($to = mysql_fetch_array($tl_query)) 
{ 
echo "<tr>"; 
echo "<td width=\"50%\"><a href=\"./thread.php?id=".$to['thread_id']."\">".$to['thread_title']."</a></td>"; 
echo "<td width=\"50%\">".$to['thread_autor']."</td>"; 
echo "</tr>"; 
} 
echo "</table>"; 
?> 
<br> 
<div align="right"><a href="./newthread.php" target="_self">Neuer Thread</a></div> 
<br> 
</body> 
</html>
 
Zuletzt bearbeitet:
Der Fehler lag an der Ausgabe des Links:
echo "<td width=\"50%\"><a href=./thread.php?id=".$to['thread_id'].">".$to['thread_title']."</a></td>";
Siehst du ihn?
 
Zurück