milkshake333 Posted October 31, 2010 Share Posted October 31, 2010 insertToDB = "INSERT INTO vehshop (vehid, price, group, type) VALUES('" .. vehid .. "', '" .. price .. "', '" .. tostring(theGroup) .. "', '" .. tostring(theType) .. "')" It returns the error that there's an error in my syntax. What's wrong with it, I don't see nothing wrong. Link to comment
dzek (varez) Posted October 31, 2010 Share Posted October 31, 2010 its also saying where you make a mistake. if your query have variables its good to display it before looking for errors outputDebugString(insertToDB) and looks for errors. the error is that "group" is mysql reserved word. add ` around reserved words if you want to use them as column names Link to comment
milkshake333 Posted October 31, 2010 Author Share Posted October 31, 2010 Aah ty, you said this before to me, but I couldn't remember what it was. Thanks Link to comment
dzek (varez) Posted October 31, 2010 Share Posted October 31, 2010 i did? why you didnt search then? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now