Guest User

Untitled

a guest
Jul 12th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <?PHP
  2. $host = "localhost";
  3. $dbuser = "root";
  4. $dbpass = "";
  5. $db="partnerpaul";
  6. mysql_connect($host, $dbuser, $dbpass) or die ('Error: Connection error, Can not connect to the database because: ' . mysql_error());
  7. mysql_select_db($db) or die('Error: Selection error, Unable to select database $database because: ' . mysql_error());
  8.  
  9. $first = $_POST['first'];
  10. $last = $_POST['last'];
  11. $email = $_POST['email'];
  12. $email2 = $_POST['email2'];
  13. $password = $_POST['password'];
  14. $password2 = $_POST['password2'];
  15. $phone = $_POST['phone'];
  16. $submit = $_POST['send'];
  17.  
  18.  
  19. mysql_query("INSERT INTO received VALUES ('', '$first', '$last', '$email', '$email2', '$password', '$password2', '$phone', '$send')")or die ('Error: Connection error, Can not insert fields into the database because: ' . mysql_error());;
  20.  
  21.  
  22.  
  23. ?>
Add Comment
Please, Sign In to add comment