daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest May 16th, 2018 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top