denny199 Posted April 20, 2013 Author Share 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? Link to comment
denny199 Posted April 20, 2013 Author Share 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. Link to comment
DiSaMe Posted April 20, 2013 Share 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. Link to comment
denny199 Posted April 20, 2013 Author Share Posted April 20, 2013 Aaaaaah, thanks man, hahahaha It worked 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