I've been trying to do this query (this is the result of echo statement of a query) and all fields & table exist. Yet, I do not know why I get this error. PHP & MySQL.
UPDATE monsterdata SET name = 'Sharks', type1 = 'earth', type2 = 'earth',Grade = 'B', hp=7,atk=2,def=3,spd=3,int=5,exp=20,evolvelvl=20,evolvesto=2,credits=15,evolutionlvl=1,maleratio=1,IsReleased=1,IsTokenOnly=0,IsStarter=0 WHERE id = 1
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int=5,exp=20,evolvelvl=20,evolvesto=2,credits=15,evolutionlvl=1,maleratio='1',Is' at line 1[/I]
INT is a reserved word. Change the name of that column, or put it between backticks.
thanks man, I have no idea why I didn't see that. Fixed! Thanks a lot!
INT is a preserved data type so u can 't use it as a variable and also put semicolon (;) in the end.
preserved?? that's an interesting way of saying don't use INT as a column name
which has already been said
that's totally optional, and has nothing to do with the posted error
This topic is now closed. New replies are no longer allowed.