Jump to content

Best database saving?


denny199

Recommended Posts

Posted

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?

Posted

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.

Posted

That's because in the second case you are comparing ACCOUNTNAME to `'denny19'` (what means a column name), not 'denny19'. Remove the backticks.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...