Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. $connection = mysqli_connect("localhost", "root", "", "elixia");
  4.  
  5. $username = $_POST["username"];
  6. $password = $_POST["password"];
  7.  
  8. $password = sha1($password);
  9.  
  10. $sql = "INSERT INTO 'users' ('username', 'password', 'level', 'xp', 'xpcap',
  11. 'maxhealth', 'strength', 'critchance', 'critdmg', 'basedmg', 'hitrate')
  12. VALUES ($username, $password, '1', '0', '1000', '100', '50', '0', '25', '50', '1')";
  13.  
  14. mysqli_query($connection, $sql);
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement