Browser MMO Video #4
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
holy crud thats wierd.
2 things to try.
1. name it something different. monsters or something
2. watch the tutorials up to about video 10 or more where I give the sql database dump. You can import it in.
2 things to try.
1. name it something different. monsters or something
2. watch the tutorials up to about video 10 or more where I give the sql database dump. You can import it in.
Re: Video #4
It shows you already have a table created in your Tutorials database - what is it called?
-
- Posts: 62
- Joined: Tue Nov 24, 2009 11:09 pm
Re: Video #4
theres only 1 table in tutorials thats players
Re: Video #4
by the looks of it you have put a space after the name creatures.
incorrect table name 'creatures '
try again without the space at the end.
incorrect table name 'creatures '
try again without the space at the end.
New Site Coming Soon! Stay tuned 

- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
no doubt. I can't believe I didn't see that! Nice catch.
-
- Posts: 62
- Joined: Tue Nov 24, 2009 11:09 pm
Re: Video #4
Thank you sooo much, im such an idiot Im not sure why I put a space after it but thats fixed it 

Re: Video #4
Hey,
For some reason after i finished all the database and finished off the battle.php, i opened up the local host, went to battle.php and i got the following error message:
Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 30
Notice: Undefined index: hpoints in C:\wamp\www\Tutorial\battle.php on line 31
Notice: Undefined index: attack in C:\wamp\www\Tutorial\battle.php on line 32
Notice: Undefined index: defense in C:\wamp\www\Tutorial\battle.php on line 33
Hit points =
Attack =
Defense =
Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 42
Hit points =
Attack =
Defense =
Attack!
For some reason after i finished all the database and finished off the battle.php, i opened up the local host, went to battle.php and i got the following error message:
Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 30
Notice: Undefined index: hpoints in C:\wamp\www\Tutorial\battle.php on line 31
Notice: Undefined index: attack in C:\wamp\www\Tutorial\battle.php on line 32
Notice: Undefined index: defense in C:\wamp\www\Tutorial\battle.php on line 33
Hit points =
Attack =
Defense =
Notice: Undefined index: name in C:\wamp\www\Tutorial\battle.php on line 42
Hit points =
Attack =
Defense =
Attack!
Re: Video #4
Sorted the error message out, i used caps instead of lower case lol
But now, i get this:
Hit points =
Attack =
Defence =
Goblin
Hit points = 5
Attack = 3
Defence = 3
Attack!
Any reason why there is no data in the player thing?
Thanks
But now, i get this:
Hit points =
Attack =
Defence =
Goblin
Hit points = 5
Attack = 3
Defence = 3
Attack!
Any reason why there is no data in the player thing?
Thanks
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Video #4
something is not right with your code and your db, post the code so we can take a look.