Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_POST) {
- include '../../includes/config.php';
- include '../../includes/opendb.php';
- // Write the vars
- $username = mysql_real_escape_string($_POST['username']);
- $password = sha1($_POST['password']);
- // MySQL stuff
- // Connect to our database
- // ----------------------------------
- $query = sprintf("INSERT INTO mycraft (username, password) VALUES ('$username', '$password')");
- $result = mysql_query($query);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement