Page 5 of 5
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:28 pm
by hallsofvallhalla
you cannot go directly to reguser, it will always error out
change
Code: Select all
mysql_query($SQL) or die("could not register");
to
Code: Select all
mysql_query($SQL) or die(mysql_error());
that will give you the error
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:29 pm
by hallsofvallhalla
SpiritWebb wrote:Try changing to this part and let me know what happens:
Code: Select all
if (isset($_POST)) {
$player=$_POST['player'];
$password=$_POST['password'];
$pass2=$_POST['pass2'];
$player=strip_tags($player);
$email=$_POST['email'];
$email=strip_tags($email);
}
disregard that error message he posted. He tried to go directly to reguser.php in which you cannot as it is looking for post data. Those errors will always show.
I think it is a syntax error and the mysql_error() should give us what it is.
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:33 pm
by SpiritWebb
I saw your post after I commented...waiting to see.
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:36 pm
by Axurr
Do i replace the register.php with that?
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:40 pm
by SpiritWebb
Axurr wrote:Do i replace the register.php with that?
at the bottom of your reguser.php file, find the line that Halls stated and change that first so we can fully see the error.
To:
Code: Select all
mysql_query($SQL) or die(mysql_error());
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:45 pm
by Axurr
So I think I messed it up even more :/
I changed what halls told me to and I got an error about maxhp.
What I did was going to Video 7 and copy and paste the source that halls posted into my code. Replacing what I had and adding new stuff. I was going to continue the video 6 and follow through the code as he explained it.
If someone has Teamviewer to help me better,that would be better lol
EDIT:Ok guys, It's fixed. I can now register.

Thanks for your help.
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 7:59 pm
by SpiritWebb
Glad you got it fixed...
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 8:04 pm
by Axurr
Yea me too. When I got something about maxhp i was like "What?!? maxhp?" Lol all I had to do was go add that where the name and exper is lol
Re: Browser MMO Video#6a and 6b
Posted: Fri Apr 25, 2014 8:05 pm
by SpiritWebb
Axurr wrote:Yea me too. When I got something about maxhp i was like "What?!? maxhp?" Lol all I had to do was go add that where the name and exper is lol
Good, congrats!