Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. if($_POST) {
  3. include '../../includes/config.php';
  4. include '../../includes/opendb.php';
  5. // Write the vars
  6. $username = mysql_real_escape_string($_POST['username']);
  7. $password = sha1($_POST['password']);
  8. // MySQL stuff
  9. //  Connect to our database
  10. //  ----------------------------------
  11. $query = sprintf("INSERT INTO mycraft (username, password) VALUES ('$username', '$password')");
  12. $result = mysql_query($query);
  13.  
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement