Browser MMO Video #3

Location of the Videos
Chriillzz
Posts: 7
Joined: Mon Feb 01, 2010 3:29 pm

Re: Video#3

Post by Chriillzz »

webbrowser.png
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video#3

Post by OldRod »

The table name is 'spelare'... your script is looking for 'players'.
Chriillzz
Posts: 7
Joined: Mon Feb 01, 2010 3:29 pm

Re: Video#3

Post by Chriillzz »

Aha that is the swedish word for players so I just thougt I'll put that in. But thanks alot!
Chriillzz
Posts: 7
Joined: Mon Feb 01, 2010 3:29 pm

Re: Video#3

Post by Chriillzz »

Works now.
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video#3

Post by OldRod »

Great :)
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video#3

Post by Jackolantern »

Looks like you will have to adjust any English words in the videos to Swedish if that is what you are using in your database. Just remember that what you call your columns in MySQL is exactly what you have to have in your code.
The indelible lord of tl;dr
tehbeasthax
Posts: 15
Joined: Thu Feb 25, 2010 6:22 pm

Re: Video#3

Post by tehbeasthax »

when i hit submit it says "not able to query for password" which is coming from this snippet of code

Code: Select all

$isaddress="SELECT * from players where email='$email'";
    $isaddress2=mysql_query($isaddress) or die("not able to query for password");
    $isaddress3=mysql_fetch_array($isaddress2);
    if($isaddress3)
My table is players what else could be wrong?
User avatar
OldRod
Posts: 1320
Joined: Sun Sep 20, 2009 4:26 pm

Re: Video#3

Post by OldRod »

Make sure you have an 'email' field in your table?
tehbeasthax
Posts: 15
Joined: Thu Feb 25, 2010 6:22 pm

Re: Video#3

Post by tehbeasthax »

Fixed it i had E-mail and so i just changed it to email works fine now thanks for telling me to look at the table
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Video#3

Post by Jackolantern »

That is a constant source of errors for almost all of us, and definitely something to check on when you are getting errors from SQL statements.

My best advice would be to come up with a personal standard and stick to it all the way through the project. I use all lower-case, all run-together (no camel case or Hungarian notation) so as long as I can remember what the words are, I know how I entered them in the database without alt-tabbing back over to it :)
The indelible lord of tl;dr
Post Reply

Return to “Older Browser MMO Videos”