Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("mysql/core.php");
- $club = trim(htmlspecialchars($_POST['club']));
- $username = trim(htmlspecialchars($_POST['username']));
- $email = trim(htmlspecialchars($_POST['email']));
- $kommentar = trim(htmlspecialchars($_POST['kommentar']));
- $ipadresse = trim(htmlspecialchars($_POST['ipadresse']));
- $eintrag = mysql_query("INSERT INTO users(club,username,email,kommentar,ipadresse,timestamp) VALUES('".$club."','".$username."','".$email."','".$kommentar."','".$ipadresse."',CURRENT_TIMESTAMP)")or die (mysql_error());
- mysql_query($eintrag);
- if($eintrag == "0")
- {
- echo "Deine Daten wurden abgesendet!";
- }
- }else{
- }
- if($eintrag == "1")
- {
- echo "Deine Daten wurden nicht abgesendet!"
- }
- ?>
Add Comment
Please, Sign In to add comment