Guest User

Untitled

a guest
May 16th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <?php
  2.  
  3. require_once("mysql/core.php");
  4.  
  5. $club = trim(htmlspecialchars($_POST['club']));
  6.  
  7. $username = trim(htmlspecialchars($_POST['username']));
  8.  
  9. $email = trim(htmlspecialchars($_POST['email']));
  10.  
  11.  
  12. $kommentar = trim(htmlspecialchars($_POST['kommentar']));
  13.  
  14. $ipadresse = trim(htmlspecialchars($_POST['ipadresse']));
  15.  
  16. $eintrag = mysql_query("INSERT INTO users(club,username,email,kommentar,ipadresse,timestamp) VALUES('".$club."','".$username."','".$email."','".$kommentar."','".$ipadresse."',CURRENT_TIMESTAMP)")or die (mysql_error());
  17. mysql_query($eintrag);
  18.  
  19. if($eintrag == "0")
  20. {
  21. echo "Deine Daten wurden abgesendet!";
  22. }
  23.  
  24. }else{
  25.  
  26. }
  27.  
  28. if($eintrag == "1")
  29.  
  30. {
  31.  
  32. echo "Deine Daten wurden nicht abgesendet!"
  33.  
  34. }
  35.  
  36. ?>
Add Comment
Please, Sign In to add comment