php - Unknown mysql syntax error -


i have mysql query , keep on getting syntax error. ran through different debugging tools , haven't found anything. tehre i'm missing.

my query

 insert futureposts  (     id,      username,      postedby,      link,      message,      picture,      name,      caption,      description,       groups,      type )  values  ('','1','codecompiler','codecompiler,'','','','','','','default','daily') 

the error

you have error in sql syntax; check manual corresponds mysql server version right syntax use near 'default','daily')' @ line 1

you missed ' code after codecompiler change query from

insert futureposts (id, username, postedby, link, message, picture, name, caption, description, groups, type) values ('','1','codecompiler','codecompiler,'','','','','','','default','daily') 

to

insert futureposts (id, username, postedby, link, message, picture, name, caption, description, groups, type) values ('','1','codecompiler','codecompiler','','','','','','default','daily') 

and there 1 column added in query , check , remove column


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -