03.01.2008, 22:09
naja ich hab 777 drinne.
ich poste mal den code von index.php und board.php
board.php
[code=php]<?
require("../global.php");
require("../acp/lib/functions.php");
$boardid = $_GET['boardid'];
## Threads ausgeben ##
$result = $db->query("SELECT threadid, topic, lastposttime, lastposter FROM bb".$n."_threads WHERE boardid='$boardid' ORDER BY lastposttime DESC");
while ($row = $db->fetch_array($result))
{
$lastposttime = date("d.m.Y, H:i", $row['lastposttime']);
echo("$row[topic] | $lastposttime | $row[lastposter]<br>");
}
?>[/code]
index.php
[code=php]<?
require("../global.php");
require("../acp/lib/functions.php");
## Boards ausgeben ##
$result = $db->query("SELECT boardid, title FROM bb".$n."_boards WHERE invisible='0' AND isboard='1'");
while ($row = $db->fetch_array($result))
{
echo("<a href=\"board.php?boardid=$row[boardid]\">$row[title]</a><br>");
}
?>[/code]
ich poste mal den code von index.php und board.php
board.php
[code=php]<?
require("../global.php");
require("../acp/lib/functions.php");
$boardid = $_GET['boardid'];
## Threads ausgeben ##
$result = $db->query("SELECT threadid, topic, lastposttime, lastposter FROM bb".$n."_threads WHERE boardid='$boardid' ORDER BY lastposttime DESC");
while ($row = $db->fetch_array($result))
{
$lastposttime = date("d.m.Y, H:i", $row['lastposttime']);
echo("$row[topic] | $lastposttime | $row[lastposter]<br>");
}
?>[/code]
index.php
[code=php]<?
require("../global.php");
require("../acp/lib/functions.php");
## Boards ausgeben ##
$result = $db->query("SELECT boardid, title FROM bb".$n."_boards WHERE invisible='0' AND isboard='1'");
while ($row = $db->fetch_array($result))
{
echo("<a href=\"board.php?boardid=$row[boardid]\">$row[title]</a><br>");
}
?>[/code]