3 per linje
er der nogle der gider ændre nedeståndene kode så der bliver vist 3 forum overskrifter pr linje<?php
$side = ".";
require "$side/tjek.func.php";
require "$side/includes/funcs.php";
if($_GET['emneId']){
$query = mysql_query("SELECT * FROM forum_emne WHERE id = '$_GET[emneId]' LIMIT 1");
$r = mysql_fetch_array($query);
$side_titel = "$r[emne]";
}
$hvor = "<b>" . $side_titel . "</b>";
?><html>
<head><link href="<?=$side;?>/default.css" rel="stylesheet" type="text/css" />
<title>Content</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
a{text-decoration:none
}
BODY {
scrollbar-face-color:#343434;
scrollbar-highlight-color:#343434;
scrollbar-3dlight-color:#343434;
scrollbar-darkshadow-color:#343434;
scrollbar-shadow-color:#343434;
scrollbar-arrow-color:#98C800;
scrollbar-track-color:#343434;
}</style>
</head>
<body BGCOLOR=#343434 LEFTMARGIN=0 TOPMARGIN=5 MARGINWIDTH=0 MARGINHEIGHT=0 LINK=000000 VLINK=000000>
<center>
<!-- indhold start -->
<tr><td>
<?php if(!$_GET['emneId']){
$_GET['emneId'] = "all";
}
if(($_COOKIE['login']) && ($_USER['rang'] == 2) || ($_USER['rang'] == 3)){
$queryEmne = mysql_query("SELECT * FROM forum_emne ORDER BY sort");
} else {
$queryEmne = mysql_query("SELECT * FROM forum_emne WHERE public = '1' ORDER BY sort");
}
while($r = mysql_fetch_array($queryEmne)){
$id = $r["id"];
$emne = $r["emne"];
echo "
<a href=\"forum.php?emneId=$id\"><b>+ $emne:</b></a>
";
}
?>
<!-- indhold slut -->
</center>
</table>
</body>
</html>
