milkshake333 Posted October 31, 2010 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.
dzek (varez) Posted October 31, 2010 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 Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
milkshake333 Posted October 31, 2010 Author Posted October 31, 2010 Aah ty, you said this before to me, but I couldn't remember what it was. Thanks
dzek (varez) Posted October 31, 2010 Posted October 31, 2010 i did? why you didnt search then? Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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