SHARE
TWEET

Untitled

a guest May 23rd, 2019 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $servername = "sql208.epizy.com";
  4. $database = "epiz_23938083_users";
  5. $username = "epiz_23938083";
  6. $password = "897pYRJDu0FTlx";
  7. // Create connection
  8.  
  9. $conn = mysqli_connect($servername, $username, $password, $database);
  10.  
  11. // Check connection
  12.  
  13. if (!$conn) {
  14.       die("Connection failed: " . mysqli_connect_error());
  15. }
  16.  
  17. $first = $_GET['first'];
  18. $last = $_GET['last'];
  19. $email = $_GET['email'];
  20. $password = $_GET['password'];
  21.  
  22. $sql = "INSERT INTO user_information (first, last, email, password) VALUES ('$first', '$last', '$email', '$password')";
  23. if (mysqli_query($conn, $sql)) {
  24.       echo "New record created successfully";
  25. } else {
  26.       echo "Error: " . $sql . "<br>" . mysqli_error($conn);
  27. }
  28. mysqli_close($conn);
  29.  
  30. header("Location: http://onchat.ml")
  31.  
  32. ?>
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