Code: Select all
else
{
$password = md5($password);
$SQL = "INSERT into players (name, password, email, level, exper) VALUES ['$player','$password','$email','1','0']";
mysql_query($SQL) or die("could not register, db error");
print "Thank you for registering a new account'";
Every time I click Submit on my register.php page, the reguser.php page throws up that error message which is the die function. I already fixed about 20 errors, turns out my monitor sucks cause what I thought were apostrophes in the YouTube videos were actually freakin exclamation marks! And where I had parenthesis were actually BRACKETS!!! I literally could not tell the difference on my screen, but figured it out from my basic understanding of the syntax. So, after the last hour of fixing my own mistakes, I know can't seem to work out what's wrong. Oh and get this, my first error? I forgot to include the connect.php file at the top of my reguser script

Took me 20 minutes to realize that it was missing
