webbrowser.png
Browser MMO Video #3
Re: Video#3
The table name is 'spelare'... your script is looking for 'players'.
Re: Video#3
Aha that is the swedish word for players so I just thougt I'll put that in. But thanks alot!
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video#3
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
-
- Posts: 15
- Joined: Thu Feb 25, 2010 6:22 pm
Re: Video#3
when i hit submit it says "not able to query for password" which is coming from this snippet of code My table is players what else could be wrong?
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)
-
- Posts: 15
- Joined: Thu Feb 25, 2010 6:22 pm
Re: Video#3
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
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Video#3
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
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