nein echt jetzt?
das weiß ich auch aber die seiten zum Erstellen eines neuen themas
das weiß ich auch aber die seiten zum Erstellen eines neuen themas

ist es einfach ein Risiko eine eigene ForenSW online zu stellen, die dir ggf den MySql Server plättet oder sonstige Schweinereien auf deinem Server anstellt.
<?
include ("db.inc.php");
$name = $_POST["name"];
$eintrag = "INSERT INTO newthread (name) VALUES ('$name')";
$eintragen = mysql_query($eintrag);
echo "erfolgreich";
?>
<?
$tid = $_GET["tid"];
print ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>newpost</title>
</head>
<body>
<form method="post" action="newpost.php" name="newpost">');
print ('<input name="topic_id" readonly="readonly" value="');echo $tid;print ('"><br>Titel: <input
name="titel"><br>
Text: <textarea cols="50" rows="5" name="text"></textarea><br>
<br>
<input type="submit"><br>
</form>');
print ('
</body>
</html>');
?>
<?
include ("db.inc.php");
$titel = $_POST["titel"];
$text = $_POST["text"];
$topic_id = $_Post["topic_id"];
$eintrag = "INSERT INTO newpost (titel, text, topic_id) VALUES ('$titel', '$text', '$topic_id')";
$eintragen = mysql_query($eintrag);
echo "erfolgreich";
?>
<?
include ("db.inc.php");
$abfrage = "SELECT * FROM newthread ";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
print ('<a href="newpost1.php?tid=');echo $row->id; print('">Neue antwort</a><br><a href="thread.php?TID=');echo $row->id;
print ('">');
echo $row->name;print('</a><
hr><br>');
$topic_id = "$row->id";
$eintrag = "INSERT INTO newpost (topic_id) VALUES ('$topic_id')";
$eintragen = mysql_query($eintrag);
}
?>
<?
include ("db.inc.php");
$TID = (!empty($_REQUEST['TID'])) ? $_REQUEST['TID'] : false;
$abfrage = "SELECT * FROM newpost WHERE topic_id = $TID";
$ergebnis = mysql_query($abfrage);
while($row = mysql_fetch_object($ergebnis))
{
echo $row->titel;
}
?>
Comment