fejl i nogle tables (tror jeg)
http://4boys.4b.funpic.org/ny/forum/test.php?bord_id=1hvorfor bliver det ikke også sat i table
koden
<?php
include("../functions.php");
include("../settings.php");
cookie_user();
?>
<?
echo"<table width='100%' cellpadding='1' cellspacing='1'>";
echo"<tr>";
echo"<td width='70%' bgcolor='#999999'>Overskrift</td>";
echo"<td width='10%' bgcolor='#999999'>Indlæg</td>";
echo"<td width='10%' bgcolor='#999999'>Oprettet d.</td>";
echo"<td width='10%' bgcolor='#999999'>Oprettet af</td>";
echo"</tr>";
$hent_overskrift = mysql_query("SELECT * FROM forum_spm WHERE forum_bord_id = '$_GET[bord_id]'") or die(mysql_error());
while($row = mysql_fetch_array($hent_overskrift)) {
echo"<tr><td width='70%' bgcolor='#999999'>";
echo $row[overskrift] = substr($row["overskrift"],0,40);
echo"</td>";
echo"<td width='10%' bgcolor='#999999'>";
$sql = "SELECT COUNT(forum_spm_id) FROM forum_svar WHERE forum_spm_id = '$row[spm_id]'";
$tael = mysql_query($sql) or die (mysql_error());
echo"<center>";
echo mysql_result($tael, 0);
echo"</center>";
echo"</td>";
echo"<td width='10%' bgcolor='#999999'>";
$hent_dato = mysql_query("SELECT * FROM forum_spm LIMIT 1") or die(mysql_error());
while($daton = mysql_fetch_array($hent_dato)) {
echo"$daton[dato]";
}
echo"</td>";
echo"<td width='10%' bgcolor='#999999'>";
$hent_opretter = mysql_query("SELECT * FROM forum_spm LIMIT 1") or die(mysql_error());
while($opretter = mysql_fetch_array($hent_opretter)) {
echo"$opretter[brugernavn]";
}
echo"</td>";
echo"</tr>";
echo"</table>";
}
?>
