Browser MMO Video#6a and 6b

Location of the Videos
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Browser MMO Video#6a and 6b

Post 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
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Browser MMO Video#6a and 6b

Post 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.
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Browser MMO Video#6a and 6b

Post by SpiritWebb »

I saw your post after I commented...waiting to see.
Image

Image
Axurr
Posts: 23
Joined: Fri Apr 25, 2014 8:53 am

Re: Browser MMO Video#6a and 6b

Post by Axurr »

Do i replace the register.php with that?
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Browser MMO Video#6a and 6b

Post 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());
Image

Image
Axurr
Posts: 23
Joined: Fri Apr 25, 2014 8:53 am

Re: Browser MMO Video#6a and 6b

Post 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.
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Browser MMO Video#6a and 6b

Post by SpiritWebb »

Glad you got it fixed...
Image

Image
Axurr
Posts: 23
Joined: Fri Apr 25, 2014 8:53 am

Re: Browser MMO Video#6a and 6b

Post 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
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Browser MMO Video#6a and 6b

Post 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!
Image

Image
Post Reply

Return to “Older Browser MMO Videos”