Jump to content

sql


golanu21

Recommended Posts

Posted
dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) 

there i need to modify ??, or just tablename columname and columnvalue .. ?

Posted

tableName, columnName, columnValue variables should contain strings except maybe the columnValue it depends on what kind of data do you want to store there.

like:

tableName = "users" 
columnName = "money" 
columnValue  = 5000 
dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) 

but that's a bad example.. hmm

tableName = "users" 
columnName = "username" 
columnValue  = user 
dbExec( char_db, "UPDATE `??` SET `??`=?", tableName, columnName, columnValue ) 

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...