to ting skal gøres! (nemt)
Er der nogen der kan se fejlen her??? jeg får ikke noget fejl, der sker bare ikke noget... men det virker hvis jeg skriver at id´en er 2<?php
include("db.php");
$result = mysql_query("SELECT * FROM majestic_board ORDER BY id DESC LIMIT 10") or die (mysql_error());
while ($row = mysql_fetch_array($result)) {
?>
<?php
include("db.php");
$result = mysql_query("SELECT svar_id FROM majestic_board_svar WHERE svar_id = '$id'") or die (mysql_error());
$a=Array();
while ($row = mysql_fetch_array($result)) {
$a[]=$row[0];
?>
<tr style='cursor:pointer' onClick="location.href='board/kliks.php?id=<?php print"$row[id]" ?>';" onmouseover='this.style.backgroundColor="#0C304E"' onmouseout='this.style.backgroundColor=""'>
<td width="341" height="20"> <?php print"$row[emne]" ?>
</td>
<td width="115" height="20"><?php print"$row[navn]" ?>
</td>
<td width="66" height="20">
<?php
print "".count($a)."";
?>
</td>
<td width="64" height="20"> <?php print"$row[vist]" ?>
</td>
<td width="122" height="20"> <?php print"$row[dato]" ?>
</td>
</tr>
<?php
}
}
?>
