Advertisement
Guest User

Untitled

a guest
May 14th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $type= $_POST["Type Select Name"]; //Optional
  2. $username = $_POST["Username Form Name"]
  3. $password = $_POST["Password Form Name"]
  4.  
  5. mysql_connect("localhost", "root", "ascent") or die(mysql_error());
  6. mysql_select_db("Logon") or die(mysql_error());
  7.  
  8. $query = "INSERT INTO Accounts (name, password, type) VALUES ('$username, $password, $type')") or die(mysql_error());
  9. echo("Congratulations, you have succesfully registered the account '$username'.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement