Hmm.. wenn ich das aber so mache: PHP-Code: if ($_POST['username'] == "") { $comments_comment = "INSERT INTO user (comment, username, wohnort, icq, ava, msn, webseite) VALUES ('$comment', '$username', '$wohnort', '$icq', '$ava', '$msn', '$webseite')"; $comments_comment_q = mysql_query($comments_comment); } if($_POST['username'] != "") { header("location: index.php"); } dann schreibt der ausser der ID nichts in die DB Oder ist die if-Abfrage falsch?
if ($_POST['username'] == "") { $comments_comment = "INSERT INTO user (comment, username, wohnort, icq, ava, msn, webseite) VALUES ('$comment', '$username', '$wohnort', '$icq', '$ava', '$msn', '$webseite')"; $comments_comment_q = mysql_query($comments_comment); } if($_POST['username'] != "") { header("location: index.php"); }
--* Meine Mods für phpBB * PimpMyForum.de
Foren-Regeln