Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Author: Press
- Site: Amicitia
- Page: registerScript
- */
- /* Connection and Database selection */
- $conn = mysql_connect("localhost", "root", "") or die(mysql_error());
- $db = mysql_select_db("amicitia", $conn) or die(mysql_error());
- /* Grabs the user's input and assigns it to a variable */
- $name = $_POST['uname'];
- $pword = $_POST['pword'];
- $query = "INSERT INTO `accounts` ( `id` , `username` , `password` ) VALUES ( NULL , $name, md5($pword) )";
- mysql_query($query) or die(mysql_error());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement