Edit: Look 2nd post.
This is the script I created, it works fine already only that pass thingy:
Code:<?
$con = mysql_connect("localhost","root","w8woord");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("testrealm", $con);
$sql="INSERT INTO account (username, sha_pass_hash, email)
VALUES
('$_POST[name]','$_POST[pass]','$_POST[mail]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Account created!";
mysql_close($con);
?>
