denny199 Posted April 20, 2013 Author Posted April 20, 2013 So I still need to use dbQuery instead of dbExec? And i found this: SELECT * FROM myTable WHERE DATE(myDate) = DATE(NOW()) [google] So I maybe need to pass direct my accountname? can you give me a example?
denny199 Posted April 20, 2013 Author Posted April 20, 2013 Okay guys, let me explain it better: This is working properly: dbQuery(handler, "UPDATE playerData SET D2290=5 WHERE ACCOUNTNAME='denny19' " ) But this isn't working properly: dbExec ( handler, "UPDATE playerData SET `??`= `?` WHERE ACCOUNTNAME = `?` ", Ddata, value, ACCname ) It gives me the same error, and I didn't understood Crystal, because my english isn't so good.
DiSaMe Posted April 20, 2013 Posted April 20, 2013 That's because in the second case you are comparing ACCOUNTNAME to `'denny19'` (what means a column name), not 'denny19'. Remove the backticks.
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