Gives me the same error, but i think i know what is wrong....
look at the inserts again and notice the brackets.
$classquery3[hpoints] <----- doesnt this have to be $classquery3['hpoints']
so here is the whole sequence if this was wrong in the first place.
Code: Select all
$SQL = "INSERT into players(name, email, level, exper, password, hpoints, attack, defense, maxhp, spoints, maxspoints, pclass) VALUES ('$player','$password','$email','1','0','$classquery3['attack']','$classquery3['defense']','$classquery3['hpoints']','$classquery3['hpoints']','$classquery3['spoints']','$classquery3['spoints']','$classquery3['name']')";
mysql_query($SQL) or die("could not register");
Hope this is correct.
Wait i did it wrong grrrrr redo the above below here so it is stated 2x.
Code: Select all
$SQL = "INSERT into players(name, email, level, exper, password, hpoints, attack, defense, maxhp, spoints, maxspoints, pclass) VALUES ("$player","$password","$email","1","0","$classquery3['attack']","$classquery3['defense']","$classquery3['hpoints']","$classquery3['hpoints']","$classquery3['spoints']","$classquery3['spoints']","$classquery3['name']")";
mysql_query($SQL) or die("could not register");
OMG Now i dunno anymore grrr lemme check my own emu for the inserts
small insert of a monster for my java based emu
Code: Select all
INSERT INTO `npc` VALUES
(1,1,'Thomas D. Turkey',0,'Misguided Holiday Scrooge',0,'LineageMonster4.br_crazy_turkey',20.00,30.00,70,'male','L2Npc',40,3862,1494,0.00,0.00,40,43,30,21,20,20,0,0,1303,471,607,382,253,0,333,0,0,0,0,30,132,0,0,'LAST_HIT','false');