3000) { $Message = "Der Forumsbeitrag kann maximal 3000 Zeichen enthalten."; $Error=3; } else if(strlen($Text) == 0) { $Message = "Gib bitte einen Forumsbeitrag ein."; $Error=3; } else if(strlen($Username) == 0) { $Message = "Gib bitte einen Nickname ein."; $Error=4; } else { $A=0; $SQL = "SELECT IDBT FROM co_fo_beitraege"; $SQL = $SQL." WHERE IDParent=0"; $resIDParent = mysql_query($SQL,$connID); $rowIDParent = mysql_fetch_array($resIDParent); $IDBT=$rowIDParent["IDBT"]; $SQL = "INSERT INTO co_fo_beitraege (IDTH, IDParent, Titel, Text, Username, Mail, Datum, Status, tx,Ebene,IDU,IDBT,IDFR)"; $SQL = $SQL." VALUES ('$IDTH','$IDParent', '$Titel', '$Text', '$Username', '$Mail','".time()."', '3', '".time()."','$Ebene','$IDU','$IDBT','$IDFR')"; mysql_query($SQL,$connID); $IDB=mysql_insert_id(); //Thema tx updaten $SQL = "Update co_fo_beitraege"; $SQL = $SQL." SET Anzahl = Anzahl+1, "; $SQL = $SQL." tx = ".time(); $SQL = $SQL." WHERE IDTH =$IDTH AND IDParent = 0"; mysql_query($SQL,$connID); $OK=1; } } if($IDParent > 0) { $SQL = "SELECT Titel FROM co_fo_beitraege"; $SQL = $SQL." WHERE IDB=$IDParent "; $resIDParent = mysql_query($SQL,$connID); $rowIDParent = mysql_fetch_array($resIDParent); } else { $SQL = "SELECT Titel FROM co_fo_beitraege"; $SQL = $SQL." WHERE IDB=0 "; $resIDParent = mysql_query($SQL,$connID); $rowIDParent = mysql_fetch_array($resIDParent); } ?> templates Home
contribute


reply to:

title:

text:
nickname:

send   back