I will have some time to look at this tomorrow, and I don't think this is specifically your issue, but the player will never be added as-is. You can not put single-quotes around an integer value heading to the database:
Code: Select all
$SQL = "INSERT into players (name, password, email, level, exper) VALUES ('$player',$password','$email','1','0')";
mysql_query($SQL) or die("could not register");
That will interpret the value as a string, and you likely have the db set up to take integer values, or some other numeric type.
It should be:
Code: Select all
$SQL = "INSERT into players (name, password, email, level, exper) VALUES ('$player', '$password','$email', 1, 0)";
mysql_query($SQL) or die("could not register");
You were also missing a single-quote at the beginning of the $password value.
EDIT: And again, please be sure to use the correct forum sections. This was originally posted in MMO Makers after I explained what is supposed to be posted there after moving the first topic. If you have any questions about what goes into which forum section, please read the forum section descriptions on the forum index page.