Page 9 of 13
Re: Video #4
Posted: Sun Jan 03, 2010 11:31 pm
by hallsofvallhalla
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.
Re: Video #4
Posted: Sun Jan 03, 2010 11:37 pm
by OldRod
It shows you already have a table created in your Tutorials database - what is it called?
Re: Video #4
Posted: Mon Jan 04, 2010 8:01 am
by zolacat999
theres only 1 table in tutorials thats players
Re: Video #4
Posted: Mon Jan 04, 2010 8:20 am
by Torniquet
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.
Re: Video #4
Posted: Mon Jan 04, 2010 10:13 am
by OldRod
Good eye!
Re: Video #4
Posted: Mon Jan 04, 2010 2:26 pm
by hallsofvallhalla
no doubt. I can't believe I didn't see that! Nice catch.
Re: Video #4
Posted: Mon Jan 04, 2010 6:33 pm
by zolacat999
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
Posted: Sat Jan 09, 2010 10:44 pm
by eltish96
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!
Re: Video #4
Posted: Sat Jan 09, 2010 11:02 pm
by eltish96
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
Re: Video #4
Posted: Sun Jan 10, 2010 12:48 am
by hallsofvallhalla
something is not right with your code and your db, post the code so we can take a look.