Hey when i enter everything to register correctly it says "could not register" which i'm guessing is to do with
$SQL = "INSERT into players(name, password, email, level, exper) VALUES ('$player','$password','$email','1','0'";
mysql_query($SQL) or die("could not register");
could anyone tell me why this is please, would really appreciate any help!
Stuck on vals tutorial ( video 3b ) {reguser.php}
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Stuck on vals tutorial ( video 3b ) {reguser.php}
do not quote your numbers first off.
try this
try this
Code: Select all
$SQL = "INSERT into players(name, password, email, level, exper) VALUES ('$player','$password','$email',1,0";
mysql_query($SQL) or die(mysql_error()); Re: Stuck on vals tutorial ( video 3b ) {reguser.php}
Well I understand you don't want to show errors to the normal user using mysql_error() often helps solve this kind of problem.