when i try to insert this code i get an mysql error syntax
CREATE TABLE 'data'
(
'id' int primary key auto_increment,
'data' varchar(50),
'weight' int(2),
)
#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 ”data’
what is the error?!
thanks
You have an extra comma after the
weightline:as well, you don’t enclose field names in quotes, so the correct syntax for the whole thing is: