Guess no one cares or is smart enough to post anything here, hmmm. Guess I have to help you out a bit.
call this register.php
PHP:
<?php
include("config.php");
if (!$action) {
echo "<form action=register.php?action=register method=post>";
echo "Name <input type=text name=name><br>";
echo "Password <input type=text name=password><br>";
echo "<input type=submit value=register>";
}
if ($action == register) {
include("config.php");
$add = mysql_query("INSERT INTO database (name, password) VALUES ('$name', '$password')")
or die(mysql_error());
echo "Registered succesfully, go <a href=index.php>Back</a>";
}
?
call this config.php
PHP:
<?php
$db = mysql_connect("localhost", "username", "password");
mysql_select_db("database");
?>
There, I just quickly typed that out, hope that helps, and good luck with your website!
PS: Edit the things to your likings, the form isn't exactly organized but with tables and stuff you can make it all pretty neat, I haven't tested it so I don't know if it is bug free, if there are any errors post them here, I'll tell you how to fix it.